diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index 94f219c84a..4410516304 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue @@ -530,6 +530,7 @@ const openBaseSettings = async (baseId: string) => { baseId, query: { page: 'base-settings', + tab: 'visibility', }, }) } diff --git a/packages/nc-gui/components/dashboard/settings/BaseSettings.vue b/packages/nc-gui/components/dashboard/settings/BaseSettings.vue index 832b79d9ee..72b8d88335 100644 --- a/packages/nc-gui/components/dashboard/settings/BaseSettings.vue +++ b/packages/nc-gui/components/dashboard/settings/BaseSettings.vue @@ -12,6 +12,15 @@ const selectMenu = (option: string) => { activeMenu.value = option } + +const router = useRouter() + +onMounted(() => { + const query = router.currentRoute.value.query + if (query && query.tab && ['snapshots', 'visibility'].includes(query.tab as string)) { + selectMenu(query.tab as string) + } +})