|
|
@ -1,13 +1,5 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { |
|
|
|
import { useExpandedFormStoreOrThrow, useSmartsheetRowStoreOrThrow, useSmartsheetStoreOrThrow, useUIPermission } from '#imports' |
|
|
|
computed, |
|
|
|
|
|
|
|
useExpandedFormStoreOrThrow, |
|
|
|
|
|
|
|
useSmartsheetRowStoreOrThrow, |
|
|
|
|
|
|
|
useSmartsheetStoreOrThrow, |
|
|
|
|
|
|
|
useUIPermission, |
|
|
|
|
|
|
|
} from '#imports' |
|
|
|
|
|
|
|
import MdiDoorOpen from '~icons/mdi/door-open' |
|
|
|
|
|
|
|
import MdiDoorClosed from '~icons/mdi/door-closed' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits(['cancel']) |
|
|
|
const emit = defineEmits(['cancel']) |
|
|
|
|
|
|
|
|
|
|
@ -28,8 +20,6 @@ const save = async () => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const drawerToggleIcon = computed(() => (commentsDrawer.value ? MdiDoorOpen : MdiDoorClosed)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// todo: accept as a prop / inject |
|
|
|
// todo: accept as a prop / inject |
|
|
|
const iconColor = '#1890ff' |
|
|
|
const iconColor = '#1890ff' |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -56,16 +46,15 @@ const iconColor = '#1890ff' |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<div class="text-center w-full">Reload</div> |
|
|
|
<div class="text-center w-full">Reload</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<mdi-reload class="cursor-pointer select-none" /> |
|
|
|
<mdi-reload class="cursor-pointer select-none text-gray-500" /> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<a-tooltip placement="bottom"> |
|
|
|
<template #title> |
|
|
|
<template #title> |
|
|
|
<div class="text-center w-full">Toggle comments draw</div> |
|
|
|
<div class="text-center w-full">Toggle comments draw</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<component |
|
|
|
<MdiCommentTextOutline |
|
|
|
:is="drawerToggleIcon" |
|
|
|
|
|
|
|
v-if="isUIAllowed('rowComments') && !isNew" |
|
|
|
v-if="isUIAllowed('rowComments') && !isNew" |
|
|
|
class="cursor-pointer select-none nc-toggle-comments" |
|
|
|
class="cursor-pointer select-none nc-toggle-comments text-gray-500" |
|
|
|
@click="commentsDrawer = !commentsDrawer" |
|
|
|
@click="commentsDrawer = !commentsDrawer" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|