MOBILE-3761 course: Fix empty space displayed in some modules
parent
90aaa8f9d4
commit
f3890cd916
|
@ -100,7 +100,10 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
|
||||||
this.hasInfo = !!(
|
this.hasInfo = !!(
|
||||||
this.module.description ||
|
this.module.description ||
|
||||||
(this.showActivityDates && this.module.dates && this.module.dates.length) ||
|
(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) {
|
if (this.module.handlerData.showDownloadButton) {
|
||||||
|
|
Loading…
Reference in New Issue