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, useTablesStore,
useTabs, useTabs,
useToggle, useToggle,
useMagicKeys,
navigateToBlankTargetOpenOption,
} from '#imports' } from '#imports'
import type { NcProject } 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 { message } from 'ant-design-vue'
import { storeToRefs } from 'pinia' 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' import type { SidebarTableNode } from '~/lib'
const props = withDefaults( const props = withDefaults(

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

@ -16,12 +16,11 @@ import {
useBase, useBase,
useCommandPalette, useCommandPalette,
useI18n, useI18n,
useMagicKeys,
useMetas, useMetas,
useNuxtApp, useNuxtApp,
useTabs, useTabs,
watch, watch,
useMagicKeys,
navigateToBlankTargetOpenOption,
} from '#imports' } from '#imports'
export function useTableNew(param: { onTableCreate?: (tableMeta: TableType) => void; baseId: string; sourceId?: string }) { 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 type { FilterType, SortType, ViewType, ViewTypes } from 'nocodb-sdk'
import { acceptHMRUpdate, defineStore } from 'pinia' import { acceptHMRUpdate, defineStore } from 'pinia'
import type { ViewPageType } from '~/lib' import type { ViewPageType } from '~/lib'
import { useMagicKeys, navigateToBlankTargetOpenOption } from '#imports' import { navigateToBlankTargetOpenOption, useMagicKeys } from '#imports'
export const useViewsStore = defineStore('viewsStore', () => { export const useViewsStore = defineStore('viewsStore', () => {
const { $api } = useNuxtApp() const { $api } = useNuxtApp()

Loading…
Cancel
Save