MOBILE-2431 glossary: Fix refresh list when creating entry

main
Dani Palou 2018-06-21 15:20:07 +02:00
parent 28e3313a7c
commit ea3cc3938f
1 changed files with 1 additions and 2 deletions

View File

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