From 900c9b741e5111571ecf5a359b2230b32cb05851 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 11 Mar 2019 10:29:32 +0100 Subject: [PATCH] MOBILE-2913 course: Fix section download button disappear on PTR --- src/core/course/components/format/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/course/components/format/format.ts b/src/core/course/components/format/format.ts index 6cbf059e0..8c5bdbffe 100644 --- a/src/core/course/components/format/format.ts +++ b/src/core/course/components/format/format.ts @@ -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); } }