MOBILE-3235 core: Rename ContextLevel enum keys

main
Noel De Martin 2019-12-02 11:17:24 +01:00
parent 46cc61cc01
commit 31c4595bbd
2 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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',
} }
/** /**