Browse Source

fix: go to visibility on base node action

pull/9879/head
DarkPhoenix2704 3 days ago
parent
commit
759004842d
  1. 1
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 9
      packages/nc-gui/components/dashboard/settings/BaseSettings.vue

1
packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue

@ -530,6 +530,7 @@ const openBaseSettings = async (baseId: string) => {
baseId,
query: {
page: 'base-settings',
tab: 'visibility',
},
})
}

9
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)
}
})
</script>
<template>

Loading…
Cancel
Save