feat: read only mode

This commit is contained in:
Jannat Patel
2025-04-30 18:03:00 +05:30
parent 0d32c2a9d9
commit 603e80fd26
26 changed files with 427 additions and 302 deletions

View File

@@ -4,6 +4,7 @@
>
<Breadcrumbs :items="breadcrumbs" />
<Button
v-if="!readOnlyMode"
variant="solid"
@click="
() => {
@@ -38,6 +39,7 @@
showTooltip: false,
selectable: false,
onRowClick: (row) => {
if (readOnlyMode) return
assignmentID = row.name
showAssignmentForm = true
},
@@ -98,6 +100,7 @@ const showAssignmentForm = ref(false)
const assignmentID = ref('new')
const { brand } = sessionStore()
const router = useRouter()
const readOnlyMode = window.read_only_mode
onMounted(() => {
if (!user.data?.is_moderator && !user.data?.is_instructor) {