Browse Source

fix(nc-gui): open view new tab in background on cmd+click

nc-feat/open-base-table-view-in-new-tab
Ramesh Mane 9 months ago
parent
commit
8d773d4b63
  1. 2
      packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue
  2. 2
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue
  3. 3
      packages/nc-gui/composables/useTableNew.ts
  4. 2
      packages/nc-gui/store/views.ts

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

@ -34,8 +34,6 @@ import {
useTablesStore,
useTabs,
useToggle,
useMagicKeys,
navigateToBlankTargetOpenOption,
} from '#imports'
import type { NcProject } from '#imports'

2
packages/nc-gui/components/dashboard/TreeView/TableNode.vue

@ -4,7 +4,7 @@ import { toRef } from '@vue/reactivity'
import { message } from 'ant-design-vue'
import { storeToRefs } from 'pinia'
import { ProjectRoleInj, TreeViewInj, useNuxtApp, useRoles, useTabs, useMagicKeys } from '#imports'
import { ProjectRoleInj, TreeViewInj, useMagicKeys, useNuxtApp, useRoles, useTabs } from '#imports'
import type { SidebarTableNode } from '~/lib'
const props = withDefaults(

3
packages/nc-gui/composables/useTableNew.ts

@ -16,12 +16,11 @@ import {
useBase,
useCommandPalette,
useI18n,
useMagicKeys,
useMetas,
useNuxtApp,
useTabs,
watch,
useMagicKeys,
navigateToBlankTargetOpenOption,
} from '#imports'
export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => void; baseId: string; sourceId?: string }) {

2
packages/nc-gui/store/views.ts

@ -1,7 +1,7 @@
import type { FilterType, SortType, ViewType, ViewTypes } from 'nocodb-sdk'
import { acceptHMRUpdate, defineStore } from 'pinia'
import type { ViewPageType } from '~/lib'
import { useMagicKeys, navigateToBlankTargetOpenOption } from '#imports'
import { navigateToBlankTargetOpenOption, useMagicKeys } from '#imports'
export const useViewsStore = defineStore('viewsStore', () => {
const { $api } = useNuxtApp()

Loading…
Cancel
Save