MOBILE-3235 core: Rename 'category' context level to 'coursecat'
Renamed in order to remain consistent with the LMS.main
parent
31c4595bbd
commit
cf4331bc89
|
@ -60,7 +60,7 @@
|
|||
</ion-item>
|
||||
<a ion-item text-wrap *ngIf="categoryPath">
|
||||
<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>
|
||||
<ion-item text-wrap *ngIf="event.description">
|
||||
<h2>{{ 'core.description' | translate}}</h2>
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
export const enum ContextLevel {
|
||||
SYSTEM = 'system',
|
||||
USER = 'user',
|
||||
COURSECAT = 'category',
|
||||
COURSECAT = 'coursecat',
|
||||
COURSE = 'course',
|
||||
MODULE = 'module',
|
||||
BLOCK = 'block',
|
||||
|
|
Loading…
Reference in New Issue