|
|
|
@ -11,6 +11,7 @@ import {
|
|
|
|
|
useVModel, |
|
|
|
|
watch, |
|
|
|
|
} from '#imports' |
|
|
|
|
import { IsPublicInj } from '~/context' |
|
|
|
|
|
|
|
|
|
const props = defineProps<{ modelValue?: boolean }>() |
|
|
|
|
|
|
|
|
@ -22,6 +23,8 @@ const vModel = useVModel(props, 'modelValue', emit)
|
|
|
|
|
|
|
|
|
|
const isForm = inject(IsFormInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
const column = inject(ColumnInj) |
|
|
|
|
|
|
|
|
|
const readonly = inject(ReadonlyInj, false) |
|
|
|
@ -117,7 +120,7 @@ const expandedFormRow = ref()
|
|
|
|
|
@click.stop="unlinkRow(row)" |
|
|
|
|
/> |
|
|
|
|
<MdiDeleteOutline |
|
|
|
|
v-if="!readonly" |
|
|
|
|
v-if="!readonly && !isPublic" |
|
|
|
|
class="text-xs text-grey hover:(!text-red-500) cursor-pointer" |
|
|
|
|
@click.stop="deleteRelatedRow(row, unlinkIfNewRow)" |
|
|
|
|
/> |
|
|
|
|