MOBILE-3235 core: Rename 'category' context level to 'coursecat'

Renamed in order to remain consistent with the LMS.
main
Noel De Martin 2019-12-02 13:21:51 +01:00
parent 31c4595bbd
commit cf4331bc89
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@
</ion-item> </ion-item>
<a ion-item text-wrap *ngIf="categoryPath"> <a ion-item text-wrap *ngIf="categoryPath">
<h2>{{ 'core.category' | translate}}</h2> <h2>{{ 'core.category' | translate}}</h2>
<p><core-format-text [text]="categoryPath" contextLevel="category" [contextInstanceId]="event.category.id"></core-format-text></p> <p><core-format-text [text]="categoryPath" contextLevel="coursecat" [contextInstanceId]="event.category.id"></core-format-text></p>
</a> </a>
<ion-item text-wrap *ngIf="event.description"> <ion-item text-wrap *ngIf="event.description">
<h2>{{ 'core.description' | translate}}</h2> <h2>{{ 'core.description' | translate}}</h2>

View File

@ -144,7 +144,7 @@ export class AddonCalendarHelperProvider {
courseId = e.course ? e.course.id : e.courseid; courseId = e.course ? e.course.id : e.courseid;
if (categoryId > 0) { if (categoryId > 0) {
e.contextLevel = 'category'; e.contextLevel = 'coursecat';
e.contextInstanceId = categoryId; e.contextInstanceId = categoryId;
} else if (courseId > 0) { } else if (courseId > 0) {
e.contextLevel = 'course'; e.contextLevel = 'course';

View File

@ -18,7 +18,7 @@
export const enum ContextLevel { export const enum ContextLevel {
SYSTEM = 'system', SYSTEM = 'system',
USER = 'user', USER = 'user',
COURSECAT = 'category', COURSECAT = 'coursecat',
COURSE = 'course', COURSE = 'course',
MODULE = 'module', MODULE = 'module',
BLOCK = 'block', BLOCK = 'block',