From 3e1d2ee9ea26400131e46a224e0ab827705c9b5f Mon Sep 17 00:00:00 2001 From: mertmit Date: Tue, 1 Nov 2022 12:45:37 +0300 Subject: [PATCH] feat: allow hiding base zero Signed-off-by: mertmit --- .../nc-gui/components/dashboard/TreeView.vue | 10 ++-- .../dashboard/settings/DataSources.vue | 53 +++++++++++++------ 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 97c14475fd..2d71d433ab 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -69,8 +69,6 @@ const filteredTables = $computed(() => ), ) -const filteredBases = $computed(() => bases.value.filter((base) => base.enabled)) - let sortable: Sortable // todo: replace with vuedraggable @@ -293,7 +291,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
@@ -403,8 +401,8 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
-
-
+
+
{
-
Name
Actions
+
Show / Hide
- + @@ -369,7 +388,7 @@ watch( } .ds-table-enabled { - @apply col-span-1 w-full flex gap-2; + @apply col-span-2 flex justify-center; } .ds-table-name { @@ -377,7 +396,7 @@ watch( } .ds-table-actions { - @apply col-span-10; + @apply col-span-9; } .ds-table-col:last-child { @@ -385,6 +404,6 @@ watch( } .ds-table-handle { - @apply cursor-pointer justify-self-start; + @apply cursor-pointer justify-self-start mr-2; }