From db1e4e6b1f41dcd78f1c25cc075a9697884b7002 Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Mon, 2 Jan 2023 13:59:00 +0100 Subject: [PATCH] mobile optimisations - put views into the tree view on left sidebar (WIP) --- .../nc-gui/components/dashboard/TreeView.vue | 80 ++------------- .../dashboard/TreeViewTableEntry.vue | 98 +++++++++++++++++++ 2 files changed, 104 insertions(+), 74 deletions(-) create mode 100644 packages/nc-gui/components/dashboard/TreeViewTableEntry.vue diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index 920e4a80b5..b7ad1c3752 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -580,7 +580,7 @@ const setIcon = async (icon: string, table: TableType) => { :nc-base="bases[0].id" >
- - -
-
- -
- - - - - - - - -
- -
-
- -
- {{ - table.title - }} -
- - - - - - -
-
+
@@ -1016,7 +945,10 @@ const setIcon = async (icon: string, table: TableType) => { - + +// import { Dropdown, Tooltip } from 'ant-design-vue' +import type { TableType } from 'nocodb-sdk' +// import { useUIPermission } from '#imports' + +const props = defineProps<{ + modelValue: TableType + // setMenuContext: + // icon + // setIcon + // activeTable + // openRenameTableDialog + // deleteTable +}>() + +// const emits = defineEmits(['update:modelValue']) + +const table = useVModel(props, 'modelValue') //, emits) + +// const { bases, isSharedBase } = useProject() +// const { isUIAllowed } = useUIPermission() + + +