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

View File

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