diff --git a/src/core/features/course/components/module/module.ts b/src/core/features/course/components/module/module.ts index 5b34bd98d..29676e4ca 100644 --- a/src/core/features/course/components/module/module.ts +++ b/src/core/features/course/components/module/module.ts @@ -66,7 +66,9 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy { */ async ngOnInit(): Promise { this.modNameTranslated = CoreCourse.translateModuleName(this.module.modname) || ''; - this.showLegacyCompletion = this.showLegacyCompletion ?? !CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('3.11'); + this.showLegacyCompletion = this.showLegacyCompletion ?? + CoreConstants.CONFIG.uselegacycompletion ?? + !CoreSites.getCurrentSite()?.isVersionGreaterEqualThan('3.11'); this.checkShowManualCompletion(); if (!this.module.handlerData) { diff --git a/src/types/config.d.ts b/src/types/config.d.ts index ef8c23349..ef01af18a 100644 --- a/src/types/config.d.ts +++ b/src/types/config.d.ts @@ -65,4 +65,5 @@ export interface EnvironmentConfig { wsrequestqueuedelay: number; // Maximum number of miliseconds to wait before processing the queue. calendarreminderdefaultvalue: number; // Initial value for default reminders (in seconds). User can change it later. removeaccountonlogout?: boolean; // True to remove the account when the user clicks logout. Doesn't affect switch account. + uselegacycompletion?: boolean; // Whether to use legacy completion by default in all course formats. }