-
Notifications
You must be signed in to change notification settings - Fork 720
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
base: develop
Are you sure you want to change the base?
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
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