MOBILE-3068 glossary: Prefetch categories

main
Dani Palou 2019-08-26 16:29:06 +02:00
parent 1c088deeed
commit 06f4b0ed48
1 changed files with 3 additions and 0 deletions

View File

@ -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));