diff --git a/src/addon/block/activitymodules/components/activitymodules/activitymodules.ts b/src/addon/block/activitymodules/components/activitymodules/activitymodules.ts index adc6e9173..b46a9b366 100644 --- a/src/addon/block/activitymodules/components/activitymodules/activitymodules.ts +++ b/src/addon/block/activitymodules/components/activitymodules/activitymodules.ts @@ -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(); diff --git a/src/core/constants.ts b/src/core/constants.ts index ac5a28de1..65c666882 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -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', } /**