MOBILE-3235 core: Rename ContextLevel enum keys
parent
46cc61cc01
commit
31c4595bbd
|
@ -131,7 +131,7 @@ export class AddonBlockActivityModulesComponent extends CoreBlockBaseComponent i
|
|||
*/
|
||||
protected getCourseId(): number {
|
||||
switch (this.contextLevel) {
|
||||
case ContextLevel.Course:
|
||||
case ContextLevel.COURSE:
|
||||
return this.instanceId;
|
||||
default:
|
||||
return this.sitesProvider.getCurrentSiteHomeId();
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
* Context levels enumeration.
|
||||
*/
|
||||
export const enum ContextLevel {
|
||||
System = 'system',
|
||||
User = 'user',
|
||||
Category = 'category',
|
||||
Course = 'course',
|
||||
ActivityModule = 'module',
|
||||
Block = 'block',
|
||||
SYSTEM = 'system',
|
||||
USER = 'user',
|
||||
COURSECAT = 'category',
|
||||
COURSE = 'course',
|
||||
MODULE = 'module',
|
||||
BLOCK = 'block',
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue