diff --git a/packages/nc-gui-v2/components/dashboard/TabView.vue b/packages/nc-gui-v2/components/dashboard/TabView.vue index 058e9e6067..02bc289ac9 100644 --- a/packages/nc-gui-v2/components/dashboard/TabView.vue +++ b/packages/nc-gui-v2/components/dashboard/TabView.vue @@ -20,7 +20,8 @@ const tableCreateDialog = ref(false) - + + diff --git a/packages/nc-gui-v2/components/tabs/Auth.vue b/packages/nc-gui-v2/components/tabs/Auth.vue new file mode 100644 index 0000000000..11a17bc2e2 --- /dev/null +++ b/packages/nc-gui-v2/components/tabs/Auth.vue @@ -0,0 +1,5 @@ + diff --git a/packages/nc-gui-v2/composables/useTabs.ts b/packages/nc-gui-v2/composables/useTabs.ts index a248877449..ad9f82e1ee 100644 --- a/packages/nc-gui-v2/composables/useTabs.ts +++ b/packages/nc-gui-v2/composables/useTabs.ts @@ -1,9 +1,9 @@ import { useState } from '#app' export interface TabItem { - type: 'table' | 'view' + type: 'table' | 'view' | 'auth' title: string - id: string + id?: string } export default () => { diff --git a/packages/nc-gui-v2/pages/nc/[projectId].vue b/packages/nc-gui-v2/pages/nc/[projectId].vue index de83fdb7ec..098fd21982 100644 --- a/packages/nc-gui-v2/pages/nc/[projectId].vue +++ b/packages/nc-gui-v2/pages/nc/[projectId].vue @@ -5,11 +5,12 @@ import useTabs from '~/composables/useTabs' const route = useRoute() const { loadProject, loadTables } = useProject() -const { clearTabs } = useTabs() +const { clearTabs, addTab } = useTabs() onMounted(async () => { await loadProject(route.params.projectId as string) await loadTables() + addTab({ type: 'auth', title: 'Team & Auth' }) }) watch(