From ea3cc3938f9b200890176a373105417f7690cd23 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 21 Jun 2018 15:20:07 +0200 Subject: [PATCH] MOBILE-2431 glossary: Fix refresh list when creating entry --- src/addon/mod/glossary/components/index/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/addon/mod/glossary/components/index/index.ts b/src/addon/mod/glossary/components/index/index.ts index 446b6f919..9198e0ac9 100644 --- a/src/addon/mod/glossary/components/index/index.ts +++ b/src/addon/mod/glossary/components/index/index.ts @@ -381,8 +381,7 @@ export class AddonModGlossaryIndexComponent extends CoreCourseModuleMainActivity */ protected eventReceived(data: any): void { if (this.glossary && this.glossary.id === data.glossaryId) { - this.loaded = false; - this.loadContent(); + this.showLoadingAndRefresh(false); // Check completion since it could be configured to complete once the user adds a new discussion or replies. this.courseProvider.checkModuleCompletion(this.courseId, this.module.completionstatus);