From 619dc73bcb5b6e309ef2fce7a67b87b1959a2622 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 12 Mar 2025 10:50:20 +0530 Subject: [PATCH] fix: show created tab to users with moderator or instructor role --- frontend/src/pages/CourseCertification.vue | 5 ++++- frontend/src/pages/Courses.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/CourseCertification.vue b/frontend/src/pages/CourseCertification.vue index 79ca57ca..e0925e02 100644 --- a/frontend/src/pages/CourseCertification.vue +++ b/frontend/src/pages/CourseCertification.vue @@ -81,7 +81,10 @@ const fetchEnrollmentDetails = () => { if (data.purchased_certificate) { certificate.reload() } else { - router.push({ name: 'CourseDetail', params: { courseName: props.courseName } }) + router.push({ + name: 'CourseDetail', + params: { courseName: props.courseName }, + }) } }) } diff --git a/frontend/src/pages/Courses.vue b/frontend/src/pages/Courses.vue index 8121037a..769b0121 100644 --- a/frontend/src/pages/Courses.vue +++ b/frontend/src/pages/Courses.vue @@ -283,7 +283,7 @@ const courseType = computed(() => { ] if (user.data?.is_student) { types.push({ label: __('Enrolled'), value: 'Enrolled' }) - } + } if (user.data?.is_moderator || user.data?.is_instructor) { types.push({ label: __('Created'), value: 'Created' }) }