From dee845395887bc75fe682748df0abac2859e8305 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 12 Aug 2022 15:18:42 +0800 Subject: [PATCH] fix(gui-v2): add isUIAllowed('add-column') to SmartsheetGrid --- packages/nc-gui-v2/components/smartsheet/Grid.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index 6df340cea6..08960d8cdb 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -43,6 +43,8 @@ const isLocked = inject(IsLockedInj, false) const reloadViewDataHook = inject(ReloadViewDataHookInj) +const { isUIAllowed } = useUIPermission() + // todo: get from parent ( inject or use prop ) const isPublicView = false @@ -322,7 +324,7 @@ const expandForm = (row: Row, state: Record) => { - +