MOBILE-4188 grades: Fix search results swiping

main
Noel De Martin 2023-04-19 15:02:39 +02:00
parent fa6eb60470
commit c06671a760
1 changed files with 5 additions and 2 deletions

View File

@ -81,10 +81,13 @@ export class CoreGradesCoursePage implements AfterViewInit, OnDestroy {
CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreGradesCoursesSource, []),
);
break;
case 'participants':
case 'participants': {
const search = CoreNavigator.getRouteParam('search');
this.swipeManager = new CoreGradesCourseParticipantsSwipeManager(
CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreUserParticipantsSource, [this.courseId]),
CoreRoutedItemsManagerSourcesTracker.getOrCreateSource(CoreUserParticipantsSource, [this.courseId, search]),
);
}
break;
}
} catch (error) {