Merge pull request #3159 from dpalou/MOBILE-3967
MOBILE-3967 course: Add config to always use legacy completion
This commit is contained in:
commit
7f34da3462
@ -66,7 +66,9 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy {
|
||||
*/
|
||||
async ngOnInit(): Promise<void> {
|
||||
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) {
|
||||
|
1
src/types/config.d.ts
vendored
1
src/types/config.d.ts
vendored
@ -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.
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user