|
|
|
@ -33,6 +33,7 @@ import {
|
|
|
|
|
useI18n, |
|
|
|
|
useMetas, |
|
|
|
|
useMultiSelect, |
|
|
|
|
useRoles, |
|
|
|
|
useRoute, |
|
|
|
|
useSmartsheetStoreOrThrow, |
|
|
|
|
useUIPermission, |
|
|
|
@ -57,6 +58,7 @@ const isLocked = inject(IsLockedInj, ref(false))
|
|
|
|
|
const reloadViewDataHook = inject(ReloadViewDataHookInj, createEventHook()) |
|
|
|
|
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook()) |
|
|
|
|
|
|
|
|
|
const { hasRole } = useRoles() |
|
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
|
const hasEditPermission = $computed(() => isUIAllowed('xcDatatableEditable')) |
|
|
|
|
|
|
|
|
@ -477,7 +479,12 @@ watch(
|
|
|
|
|
<a-checkbox v-model:checked="row.rowMeta.selected" /> |
|
|
|
|
</div> |
|
|
|
|
<span class="flex-1" /> |
|
|
|
|
<div v-if="!isLocked" class="nc-expand" :class="{ 'nc-comment': row.rowMeta?.commentCount }"> |
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
v-if="(!readOnly || hasRole('commenter', true) || hasRole('viewer', true)) && !isLocked" |
|
|
|
|
class="nc-expand" |
|
|
|
|
:class="{ 'nc-comment': row.rowMeta?.commentCount }" |
|
|
|
|
> |
|
|
|
|
<a-spin v-if="row.rowMeta.saving" class="!flex items-center" /> |
|
|
|
|
<template v-else> |
|
|
|
|
<span |
|
|
|
|