fix: quiz progress issue

This commit is contained in:
Jannat Patel
2025-07-14 11:40:55 +05:30
parent 3e8489c13b
commit acec382dfe
5 changed files with 46 additions and 4 deletions

View File

@@ -23,7 +23,6 @@ declare module 'vue' {
BadgeAssignments: typeof import('./src/components/Settings/BadgeAssignments.vue')['default']
BadgeForm: typeof import('./src/components/Settings/BadgeForm.vue')['default']
Badges: typeof import('./src/components/Settings/Badges.vue')['default']
Bagdes: typeof import('./src/components/Settings/Bagdes.vue')['default']
BatchCard: typeof import('./src/components/BatchCard.vue')['default']
BatchCourseModal: typeof import('./src/components/Modals/BatchCourseModal.vue')['default']
BatchCourses: typeof import('./src/components/BatchCourses.vue')['default']

View File

@@ -648,6 +648,8 @@ const getInstructions = (question) => {
const markLessonProgress = () => {
let pathname = window.location.pathname.split('/')
if (!pathname.includes('courses'))
pathname = window.parent.location.pathname.split('/')
if (pathname[2] != 'courses') return
let lessonIndex = pathname.pop().split('-')

View File

@@ -78,6 +78,7 @@
:title="__('Course Outline')"
:courseName="course.data.name"
:showOutline="true"
:getProgress="course.data.membership ? true : false"
/>
</div>
<CourseReviews