MOBILE-2913 course: Fix section download button disappear on PTR

This commit is contained in:
Dani Palou 2019-03-11 10:29:32 +01:00
parent 4015641ee5
commit 900c9b741e

View File

@ -194,7 +194,7 @@ export class CoreCourseFormatComponent implements OnInit, OnChanges, OnDestroy {
} }
} }
if (changes.downloadEnabled && this.downloadEnabled) { if (this.downloadEnabled && (changes.downloadEnabled || changes.sections)) {
this.calculateSectionsStatus(false); this.calculateSectionsStatus(false);
} }
} }