From 06f4b0ed4832db4555413bc959b00baad872d049 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 26 Aug 2019 16:29:06 +0200 Subject: [PATCH] MOBILE-3068 glossary: Prefetch categories --- src/addon/mod/glossary/providers/prefetch-handler.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/addon/mod/glossary/providers/prefetch-handler.ts b/src/addon/mod/glossary/providers/prefetch-handler.ts index 47369498e..9235c4b54 100644 --- a/src/addon/mod/glossary/providers/prefetch-handler.ts +++ b/src/addon/mod/glossary/providers/prefetch-handler.ts @@ -179,6 +179,9 @@ export class AddonModGlossaryPrefetchHandler extends CoreCourseActivityPrefetchH return Promise.all(promises); })); + // Get all categories. + promises.push(this.glossaryProvider.getAllCategories(glossary.id)); + // Prefetch data for link handlers. promises.push(this.courseProvider.getModuleBasicInfo(module.id, siteId)); promises.push(this.courseProvider.getModuleBasicInfoByInstance(glossary.id, 'glossary', siteId));