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