Merge pull request #3470 from alfonso-salces/MOBILE-4085

MOBILE-4085 course-storage: Update course status in template
main
Noel De Martin 2022-11-24 12:41:37 +01:00 committed by GitHub
commit 61f8d8c242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -320,6 +320,7 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy {
section = this.sections.find((section) => section.modules.some((mod) => mod.id === module.id)); section = this.sections.find((section) => section.modules.some((mod) => mod.id === module.id));
if (section) { if (section) {
section.calculatingSize = true; section.calculatingSize = true;
this.changeDetectorRef.markForCheck();
} }
} }
@ -648,6 +649,7 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy {
this.prefetchCourseData.icon = statusData.icon; this.prefetchCourseData.icon = statusData.icon;
this.prefetchCourseData.statusTranslatable = statusData.statusTranslatable; this.prefetchCourseData.statusTranslatable = statusData.statusTranslatable;
this.prefetchCourseData.loading = statusData.loading; this.prefetchCourseData.loading = statusData.loading;
this.changeDetectorRef.markForCheck();
} }
/** /**