From 8d773d4b639b2c885b032f68c4d3bd5254a5e78f Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 12 Mar 2024 05:15:08 +0000 Subject: [PATCH] fix(nc-gui): open view new tab in background on cmd+click --- packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue | 2 -- packages/nc-gui/components/dashboard/TreeView/TableNode.vue | 2 +- packages/nc-gui/composables/useTableNew.ts | 3 +-- packages/nc-gui/store/views.ts | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue b/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue index 62599aee81..0230f38925 100644 --- a/packages/nc-gui/components/dashboard/TreeView/ProjectNode.vue +++ b/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' diff --git a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue b/packages/nc-gui/components/dashboard/TreeView/TableNode.vue index 52e63ff52a..45f7fe848d 100644 --- a/packages/nc-gui/components/dashboard/TreeView/TableNode.vue +++ b/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( diff --git a/packages/nc-gui/composables/useTableNew.ts b/packages/nc-gui/composables/useTableNew.ts index de4602bd54..8d77f790cb 100644 --- a/packages/nc-gui/composables/useTableNew.ts +++ b/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 }) { diff --git a/packages/nc-gui/store/views.ts b/packages/nc-gui/store/views.ts index d767a94af6..f5e60d480c 100644 --- a/packages/nc-gui/store/views.ts +++ b/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()