From 54d62a1222277fbadbd6387bcba6d2de3c058d8b Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 12 Aug 2022 11:59:20 +0800 Subject: [PATCH] fix(gui-v2): add isUIAllowed('edit-column') to header cell --- packages/nc-gui-v2/components/smartsheet-header/Cell.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue index e8fab798cc..592a5a7e43 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue @@ -10,10 +10,13 @@ const props = defineProps<{ column: ColumnType & { meta: any }; required: boolea const hideMenu = toRef(props, 'hideMenu') const meta = inject(MetaInj) + const isForm = inject(IsFormInj, ref(false)) const column = toRef(props, 'column') +const { isUIAllowed } = useUIPermission() + provide(ColumnInj, column) // instantiate column update store @@ -28,7 +31,7 @@ useProvideColumnCreateStore(meta as Ref, column)