Skip to content

Commit 755eba6

Browse files
committed
MOBILE-3890 course: Add checkCourseLanguage in all needed pages
1 parent 7fb98fe commit 755eba6

File tree

31 files changed

+37
-1
lines changed

31 files changed

+37
-1
lines changed

src/addons/badges/badges.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ const mobileRoutes: Routes = [
4747
path: '',
4848
pathMatch: 'full',
4949
loadComponent: () => import('./pages/user-badges/user-badges'),
50+
data: { checkForcedLanguage: 'course' },
5051
},
5152
{
5253
path: ':badgeHash',
5354
loadComponent: () => import('./pages/issued-badge/issued-badge'),
54-
data: { usesSwipeNavigation: true },
55+
data: { usesSwipeNavigation: true, checkForcedLanguage: 'course' },
5556
},
5657
];
5758

@@ -66,6 +67,7 @@ const tabletRoutes: Routes = [
6667
data: { usesSwipeNavigation: true },
6768
},
6869
],
70+
data: { checkForcedLanguage: 'course' },
6971
},
7072
];
7173

src/addons/blog/blog.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const routes: Routes = [
3838
{
3939
path: ADDON_BLOG_MAINMENU_PAGE_NAME,
4040
loadChildren: () => import('@addons/blog/blog-lazy.module'),
41+
data: { checkForcedLanguage: 'course' },
4142
},
4243
];
4344

src/addons/competency/competency.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,12 @@ const mainMenuChildrenRoutes: Routes = [
155155
{
156156
path: `${CORE_COURSE_PAGE_NAME}/:courseId/${ADDON_COMPETENCY_COMPETENCIES_PAGE}`,
157157
loadChildren: () => getCompetencyCourseDetailsRoutes(),
158+
data: { checkForcedLanguage: 'course' },
158159
},
159160
{
160161
path: `${CORE_COURSE_PAGE_NAME}/:courseId/${PARTICIPANTS_PAGE_NAME}/:userId/${ADDON_COMPETENCY_COMPETENCIES_PAGE}`,
161162
loadChildren: () => getCompetencyCourseDetailsRoutes(),
163+
data: { checkForcedLanguage: 'course' },
162164
},
163165
];
164166

src/addons/coursecompletion/coursecompletion.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const routes: Routes = [
4040
{
4141
path: 'coursecompletion',
4242
loadComponent: () => import('./pages/report/report'),
43+
data: { checkForcedLanguage: 'course' },
4344
},
4445
];
4546

src/addons/mod/assign/assign.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ const routes: Routes = [
121121
...conditionalRoutes(mobileRoutes, () => CoreScreen.isMobile),
122122
...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
123123
],
124+
data: { checkForcedLanguage: 'module' },
124125
},
125126
];
126127

src/addons/mod/bigbluebuttonbn/bigbluebuttonbn.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const routes: Routes = [
2626
{
2727
path: `${ADDON_MOD_BBB_PAGE_NAME}/:courseId/:cmId`,
2828
loadComponent: () => import('./pages/index/index'),
29+
data: { checkForcedLanguage: 'module' },
2930
},
3031
];
3132

src/addons/mod/book/book.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const routes: Routes = [
4141
loadComponent: () => import('./pages/contents/contents'),
4242
},
4343
],
44+
data: { checkForcedLanguage: 'module' },
4445
},
4546
];
4647

src/addons/mod/chat/chat.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const routes: Routes = [
7373
...conditionalRoutes(mobileRoutes, () => CoreScreen.isMobile),
7474
...conditionalRoutes(tabletRoutes, () => CoreScreen.isTablet),
7575
],
76+
data: { checkForcedLanguage: 'module' },
7677
},
7778
];
7879

src/addons/mod/choice/choice.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const routes: Routes = [
3535
{
3636
path: `${ADDON_MOD_CHOICE_PAGE_NAME}/:courseId/:cmId`,
3737
loadComponent: () => import('./pages/index/index'),
38+
data: { checkForcedLanguage: 'module' },
3839
},
3940
];
4041

src/addons/mod/data/data.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const routes: Routes = [
6060
loadComponent: () => import('./pages/entry/entry'),
6161
},
6262
],
63+
data: { checkForcedLanguage: 'module' },
6364
},
6465
];
6566

0 commit comments

Comments
 (0)