MOBILE-4081 course: hasInfo condition should be the same as in HTML.

main
Pau Ferrer Ocaña 2022-11-24 16:41:06 +01:00
parent 5f286924f9
commit b002c1650c
1 changed files with 1 additions and 3 deletions

View File

@ -93,9 +93,7 @@ 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.autoCompletionTodo) || (this.autoCompletionTodo && !this.showLegacyCompletion) ||
(this.module.visible === 0 && (!this.section || this.section.visible)) ||
(this.module.visible !== 0 && this.module.isStealth) ||
(this.module.availabilityinfo) (this.module.availabilityinfo)
); );