Merge pull request #3803 from NoelDeMartin/MOBILE-4362
MOBILE-4362 grades: Fix swipe navigation in tabletmain
commit
ee4cdce860
|
@ -80,7 +80,7 @@ export class CoreGradesCoursePage implements AfterViewInit, OnDestroy {
|
||||||
this.collapseLabel = Translate.instant('core.collapse');
|
this.collapseLabel = Translate.instant('core.collapse');
|
||||||
this.useLegacyLayout = !CoreSites.getRequiredCurrentSite().isVersionGreaterEqualThan('4.1');
|
this.useLegacyLayout = !CoreSites.getRequiredCurrentSite().isVersionGreaterEqualThan('4.1');
|
||||||
|
|
||||||
switch (route.snapshot.data.swipeManagerSource) {
|
switch (route.snapshot.data.swipeManagerSource ?? route.snapshot.parent?.data.swipeManagerSource) {
|
||||||
case 'courses':
|
case 'courses':
|
||||||
this.swipeManager = new CoreGradesCourseCoursesSwipeManager(
|
this.swipeManager = new CoreGradesCourseCoursesSwipeManager(
|
||||||
CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreGradesCoursesSource, []),
|
CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreGradesCoursesSource, []),
|
||||||
|
|
Loading…
Reference in New Issue