From e808595c8076b21e7034cc0ab5fb76b33f831218 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 12 Aug 2022 11:11:12 +0800 Subject: [PATCH] fix(gui-v2): revise isUIAllowed & v-t in TreeView --- .../components/dashboard/TreeView.vue | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 90f2fbe3cd..445995738e 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -18,9 +18,13 @@ const { $api, $e } = useNuxtApp() const route = useRoute() const { tables, loadTables } = useProject(route.params.projectId as string) + const { activeTab } = useTabs() + const { deleteTable } = useTable() +const { isUIAllowed } = useUIPermission() + const tablesById = $computed>(() => tables?.value?.reduce((acc: Record, table: TableType) => { acc[table.id as string] = table @@ -29,7 +33,9 @@ const tablesById = $computed>(() => ) const showTableList = ref(true) + const tableCreateDlg = ref(false) + let key = $ref(0) const menuRef = $ref() @@ -159,6 +165,7 @@ const activeTable = computed(() => { { @click="addTableTab(table)" >
-
+