diff --git a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue index a9810a14eb..3c30e105d7 100644 --- a/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue +++ b/packages/nc-gui/components/dashboard/TreeView/CreateViewBtn.vue @@ -47,6 +47,11 @@ function onOpenModal({ force: true, }) + table.value.meta = { + ...(table.value.meta as object), + hasNonDefaultViews: true, + } + navigateToView({ view, tableId: table.value.id!, diff --git a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue index 2be468ce4a..cfc05e1b46 100644 --- a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue @@ -167,13 +167,20 @@ const isTableOpened = computed(() => { @click="onOpenTable" >
- + +
!v.is_default) ?? [] + + table.value.meta = { + ...(table.value.meta as object), + hasNonDefaultViews: activeNonDefaultViews.length > 1, + } }, }) @@ -356,18 +363,8 @@ function onOpenModal({