diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue
index b360d55e07..383d5bd935 100644
--- a/packages/nc-gui/components/dashboard/TreeView.vue
+++ b/packages/nc-gui/components/dashboard/TreeView.vue
@@ -579,22 +579,20 @@ const setIcon = async (icon: string, table: TableType) => {
:key="`sortable-${bases[0].id}-${bases[0].id && bases[0].id in keys ? keys[bases[0].id] : '0'}`"
:nc-base="bases[0].id"
>
-
-
-
+ :set-menu-context="setMenuContext"
+ :icon="icon"
+ :set-icon="setIcon"
+ :active-table="activeTable"
+ :open-rename-table-dialog="openRenameTableDialog"
+ />
diff --git a/packages/nc-gui/components/dashboard/TreeViewTableEntry.vue b/packages/nc-gui/components/dashboard/TreeViewTableEntry.vue
index f7ea9dbbd2..5145a86502 100644
--- a/packages/nc-gui/components/dashboard/TreeViewTableEntry.vue
+++ b/packages/nc-gui/components/dashboard/TreeViewTableEntry.vue
@@ -14,87 +14,112 @@ const props = defineProps<{
openRenameTableDialog: (table: TableType, baseId?: string | undefined, rightClick?: boolean) => void
}>()
+const table = useVModel(props, 'modelValue') // , emits)
+
const { deleteTable } = useTable()
+// const { views, loadViews, isLoading } = useViews(table)
+const { views } = useViews(table)
-// const emits = defineEmits(['update:modelValue'])
+// onMounted(async () => {
+// await loadViews()
+// loadViews()
+// })
-const table = useVModel(props, 'modelValue') // , emits)
+// const emits = defineEmits(['update:modelValue'])
// const { bases, isSharedBase } = useProject()
const { isUIAllowed } = useUIPermission()
-
- {{ table.table_name }}
-
-
-
-
-
-
-
-
-
+
+
+ {{ table.table_name }}
+
+
+
+
+
+
+
+
+
+
- Change icon
-
-
-
-
-
-
-
+
Change icon
+
+
+
+
+
+
+
-
- {{
- table.title
- }}
-
+
+ {{
+ table.title
+ }}
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+