From 0e65c2cf76b3be721ffb3ac82bdf632ccab70ff6 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 26 Feb 2026 13:39:40 +0530 Subject: [PATCH] fix: batch admin conditions --- frontend/src/pages/Batches/BatchDetail.vue | 2 +- .../pages/Courses/StudentCourseProgress.vue | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/pages/Batches/BatchDetail.vue b/frontend/src/pages/Batches/BatchDetail.vue index a3a83f18..6803f5ca 100644 --- a/frontend/src/pages/Batches/BatchDetail.vue +++ b/frontend/src/pages/Batches/BatchDetail.vue @@ -191,7 +191,7 @@ const addToTabs = (label, component, icon) => { } const isAdmin = computed(() => { - return user.data?.is_moderator || batch.data?.is_evaluator + return user.data?.is_moderator || user.data?.is_evaluator }) const isStudent = computed(() => { diff --git a/frontend/src/pages/Courses/StudentCourseProgress.vue b/frontend/src/pages/Courses/StudentCourseProgress.vue index 43345688..3a159fa0 100644 --- a/frontend/src/pages/Courses/StudentCourseProgress.vue +++ b/frontend/src/pages/Courses/StudentCourseProgress.vue @@ -3,7 +3,7 @@ v-model="show" :options="{ title: __('Student Progress'), - size: hasAssessmentData ? '3xl' : 'xl', + size: hasAssessmentData ? '4xl' : 'xl', }" >