|
|
|
@ -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) { |
|
|
|
|