From 4a0e878c32d20ac5051ac0f049791c577335886f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Aug 2022 22:57:53 +0530 Subject: [PATCH] fix(api): hide delete record icon in shared form children list(mm/hm) Signed-off-by: Pranav C --- .../components/virtual-cell/components/ListChildItems.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue index bf938dd849..7b987eddde 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue @@ -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)" />