-
Notifications
You must be signed in to change notification settings - Fork 744
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
Fixes assigned lessons and quizzes are not visible to the learner #12992
Conversation
@@ -36,6 +36,12 @@ export default [ | |||
{ | |||
name: ClassesPageNames.CLASS_ASSIGNMENTS, | |||
path: '/classes/:classId', | |||
props: route => { | |||
const classId = route.params.classId; |
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.
I thought of passing classId as a prop to make it accessible in the component which was not possible with this.$route.params.classId
Build Artifacts
|
const className = computed(() => (get(classroom) ? get(classroom).name : '')); | ||
const activeLessons = computed(() => getClassActiveLessons(get(classId))); | ||
const activeQuizzes = computed(() => getClassActiveQuizzes(get(classId))); | ||
const activeLessons = computed(() => getClassActiveLessons(get(classId.value))); |
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.
Shouldn't have to call get
and use the .value
accessor - only one or the other is needed.
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.
Fixed! thank you
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.
Thanks @AllanOXDi - no issues observed while manually testing.
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.
Changes all make sense, and QA checks out. Passing route props is something we have under used as a mechanism, makes a lot of sense to use it more!
Summary
This PR fixes quizes and lessons not being visible to learners
Screen.Recording.2025-01-09.at.18.06.36.mov
Closes #12955
References
#12955
Reviewer guidance