-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LearnerSummaryPage: Fix quiz/lesson report links #13037
Changes from 1 commit
caf1f8f
a85c025
d089549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
… report links
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,11 +34,7 @@ | |
> | ||
<td> | ||
<KRouterLink | ||
:to=" | ||
classRoute('ReportsLearnerReportLessonPage', { | ||
lessonId: tableRow.id, | ||
}) | ||
" | ||
:to="lessonLink(tableRow.id)" | ||
:text="tableRow.title" | ||
icon="lesson" | ||
/> | ||
|
@@ -190,7 +186,10 @@ | |
return this.getLearnersForExam(quiz).includes(this.learner.id); | ||
}, | ||
quizLink(quizId) { | ||
return this.classRoute(PageNames.REPORTS_LEARNER_REPORT_QUIZ_PAGE_ROOT, { quizId }); | ||
return this.classRoute(PageNames.QUIZ_LEARNER_REPORT, { quizId }); | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the route definitions for this page is missing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like it was caused by the appBarTitle being set specifically rather than letting it use the title parts, should be good now. Thanks @AllanOXDi ! |
||
lessonLink(lessonId) { | ||
return this.classRoute(PageNames.LESSON_LEARNER_REPORT, { lessonId }); | ||
}, | ||
exportCSVLessons() { | ||
const filteredLessons = this.lessons | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here this route is failing because we are not passing the questionId, interactionIndex and tryIndex params. Here it would be better to use the QUIZ_LEARNER_PAGE_ROOT page that the only thing that it does is that it redirects it to the
QUIZ_LEARNER_REPORT
page but defines default values for these params, so we dont need to do it here.