Merge pull request #3645 from NashTechOpenUniversity/MOBILE-4300
MOBILE-4300 course-storage: Update section size when delete allmain
commit
e9fb8784b7
|
@ -492,6 +492,11 @@ export class AddonStorageManagerCourseStoragePage implements OnInit, OnDestroy {
|
|||
|
||||
await this.updateModulesSizes(modules, section);
|
||||
CoreCourseHelper.calculateSectionsStatus(this.sections, this.courseId, false, false);
|
||||
|
||||
// For delete all, reset all section sizes so icons are updated.
|
||||
if (this.totalSize === 0) {
|
||||
this.sections.map(section => section.totalSize = 0);
|
||||
}
|
||||
this.changeDetectorRef.markForCheck();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue