MOBILE-3761 course: Fix empty space displayed in some modules

main
Dani Palou 2021-05-21 10:16:48 +02:00
parent 90aaa8f9d4
commit f3890cd916
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
this.hasInfo = !!(
this.module.description ||
(this.showActivityDates && this.module.dates && this.module.dates.length) ||
this.module.completiondata
(this.module.completiondata &&
((this.showManualCompletion && !this.module.completiondata.isautomatic) ||
(this.showCompletionConditions && this.module.completiondata.isautomatic))
)
);
if (this.module.handlerData.showDownloadButton) {