fix: batch related issues

This commit is contained in:
Jannat Patel
2024-05-16 12:53:14 +05:30
parent d00d152fdc
commit 5148fcf25b
2 changed files with 8 additions and 2 deletions

View File

@@ -20,7 +20,13 @@
:columns="getCoursesColumns()"
:rows="courses.data"
row-key="batch_course"
:options="{ showTooltip: false }"
:options="{
showTooltip: false,
getRowRoute: (row) => ({
name: 'CourseDetail',
params: { courseName: row.name },
}),
}"
>
<ListHeader
class="mb-2 grid items-center space-x-4 rounded bg-gray-100 p-2"

View File

@@ -9,7 +9,7 @@
/>
<div class="flex">
<router-link
v-if="user.data"
v-if="user.data?.is_moderator"
:to="{
name: 'BatchCreation',
params: { batchName: 'new' },