From 5ddf7db8975e44c0b2e9f0607a41798aefe8473a Mon Sep 17 00:00:00 2001 From: Alfonso Salces Date: Thu, 24 Nov 2022 12:31:00 +0100 Subject: [PATCH] MOBILE-4085 course-storage: Update course status in template --- .../storagemanager/pages/course-storage/course-storage.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/addons/storagemanager/pages/course-storage/course-storage.ts b/src/addons/storagemanager/pages/course-storage/course-storage.ts index 5e7a143d5..f1972cc8f 100644 --- a/src/addons/storagemanager/pages/course-storage/course-storage.ts +++ b/src/addons/storagemanager/pages/course-storage/course-storage.ts @@ -320,6 +320,7 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy { section = this.sections.find((section) => section.modules.some((mod) => mod.id === module.id)); if (section) { section.calculatingSize = true; + this.changeDetectorRef.markForCheck(); } } @@ -648,6 +649,7 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy { this.prefetchCourseData.icon = statusData.icon; this.prefetchCourseData.statusTranslatable = statusData.statusTranslatable; this.prefetchCourseData.loading = statusData.loading; + this.changeDetectorRef.markForCheck(); } /**