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