Browse Source

fix(nc-gui): team & settings navigation issue

nc-feat/open-base-table-view-in-new-tab
Ramesh Mane 9 months ago
parent
commit
51dee4b567
  1. 29
      packages/nc-gui/store/workspace.ts

29
packages/nc-gui/store/workspace.ts

@ -2,7 +2,17 @@ import type { BaseType } from 'nocodb-sdk'
import { acceptHMRUpdate, defineStore } from 'pinia'
import { message } from 'ant-design-vue'
import { isString } from '@vue/shared'
import { computed, navigateTo, ref, useBases, useCommandPalette, useNuxtApp, useRouter, useTheme } from '#imports'
import {
computed,
navigateTo,
navigateToBlankTargetOpenOption,
ref,
useBases,
useCommandPalette,
useNuxtApp,
useRouter,
useTheme,
} from '#imports'
import type { ThemeConfig } from '#imports'
export const useWorkspace = defineStore('workspaceStore', () => {
@ -199,15 +209,14 @@ export const useWorkspace = defineStore('workspaceStore', () => {
})
}
const navigateToWorkspaceSettings = async (_, cmdOrCtrl) => {
await navigateTo(
`${cmdOrCtrl ? '#' : ''}/account/users`,
cmdOrCtrl
? {
open: navigateToBlankTargetOpenOption,
}
: undefined,
)
const navigateToWorkspaceSettings = async (_?: string, cmdOrCtrl?: boolean) => {
if (cmdOrCtrl) {
await navigateTo('#/account/users', {
open: navigateToBlankTargetOpenOption,
})
} else {
await navigateTo('/account/users')
}
}
function setLoadingState(isLoading = false) {

Loading…
Cancel
Save