Merge pull request #3159 from dpalou/MOBILE-3967
MOBILE-3967 course: Add config to always use legacy completionmain
commit
7f34da3462
|
@ -66,7 +66,9 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
|
||||||
*/
|
*/
|
||||||
async ngOnInit(): Promise<void> {
|
async ngOnInit(): Promise<void> {
|
||||||
this.modNameTranslated = CoreCourse.translateModuleName(this.module.modname) || '';
|
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();
|
this.checkShowManualCompletion();
|
||||||
|
|
||||||
if (!this.module.handlerData) {
|
if (!this.module.handlerData) {
|
||||||
|
|
|
@ -65,4 +65,5 @@ export interface EnvironmentConfig {
|
||||||
wsrequestqueuedelay: number; // Maximum number of miliseconds to wait before processing the queue.
|
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.
|
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.
|
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.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue