fix: batch related issues
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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' },
|
||||||
|
|||||||
Reference in New Issue
Block a user