From cf4331bc89d4e9ee558b238861161c5c9395b14f Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Mon, 2 Dec 2019 13:21:51 +0100 Subject: [PATCH] MOBILE-3235 core: Rename 'category' context level to 'coursecat' Renamed in order to remain consistent with the LMS. --- src/addon/calendar/pages/event/event.html | 2 +- src/addon/calendar/providers/helper.ts | 2 +- src/core/constants.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/addon/calendar/pages/event/event.html b/src/addon/calendar/pages/event/event.html index 704a23bec..63f53e1e6 100644 --- a/src/addon/calendar/pages/event/event.html +++ b/src/addon/calendar/pages/event/event.html @@ -60,7 +60,7 @@

{{ 'core.category' | translate}}

-

+

{{ 'core.description' | translate}}

diff --git a/src/addon/calendar/providers/helper.ts b/src/addon/calendar/providers/helper.ts index 976c21431..a6bed59b5 100644 --- a/src/addon/calendar/providers/helper.ts +++ b/src/addon/calendar/providers/helper.ts @@ -144,7 +144,7 @@ export class AddonCalendarHelperProvider { courseId = e.course ? e.course.id : e.courseid; if (categoryId > 0) { - e.contextLevel = 'category'; + e.contextLevel = 'coursecat'; e.contextInstanceId = categoryId; } else if (courseId > 0) { e.contextLevel = 'course'; diff --git a/src/core/constants.ts b/src/core/constants.ts index 65c666882..c9784ccc3 100644 --- a/src/core/constants.ts +++ b/src/core/constants.ts @@ -18,7 +18,7 @@ export const enum ContextLevel { SYSTEM = 'system', USER = 'user', - COURSECAT = 'category', + COURSECAT = 'coursecat', COURSE = 'course', MODULE = 'module', BLOCK = 'block',