Browse Source

enhancement(gui-v2): navigate to home page from project list

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3271/head
Pranav C 2 years ago
parent
commit
0e1c268a0d
  1. 8
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue
  2. 2
      packages/nc-gui-v2/pages/index/index.vue

8
packages/nc-gui-v2/pages/[projectType]/[projectId]/index.vue

@ -85,10 +85,6 @@ onKeyStroke(
clearTabs()
if (!route.params.type && isUIAllowed('teamAndAuth')) {
addTab({ type: TabType.AUTH, title: 'Team & Auth' })
}
function toggleDialog(value?: boolean, key?: string) {
dialogOpen.value = value ?? !dialogOpen.value
openDialogKey.value = key
@ -98,6 +94,10 @@ await loadProject()
await loadTables()
if (!route.params.type && isUIAllowed('teamAndAuth')) {
addTab({ type: TabType.AUTH, title: 'Team & Auth' })
}
const copyProjectInfo = async () => {
try {
await loadProjectMetaInfo()

2
packages/nc-gui-v2/pages/index/index.vue

@ -153,7 +153,7 @@ onMounted(() => {
onClick: () => {
$e('a:project:open')
navigateTo(`/nc/${record.id}/auth`)
navigateTo(`/nc/${record.id}`)
},
class: ['group'],
})

Loading…
Cancel
Save