Browse Source

fix(nc-gui): small changes

nc-feat/open-base-table-view-in-new-tab
Ramesh Mane 9 months ago
parent
commit
2058c87dac
  1. 11
      packages/nc-gui/store/views.ts

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

@ -266,7 +266,8 @@ export const useViewsStore = defineStore('viewsStore', () => {
} }
} else { } else {
if (cmdOrCtrl) { if (cmdOrCtrl) {
const href = router.resolve({ await navigateTo(
router.resolve({
name: routeName, name: routeName,
params: { params: {
viewTitle: view.id || '', viewTitle: view.id || '',
@ -274,11 +275,11 @@ export const useViewsStore = defineStore('viewsStore', () => {
baseId: baseIdOrBaseId, baseId: baseIdOrBaseId,
slugs, slugs,
}, },
}).href }).href,
{
await navigateTo(href, {
open: navigateToBlankTargetOpenOption, open: navigateToBlankTargetOpenOption,
}) },
)
} else { } else {
await router.push({ await router.push({
name: routeName, name: routeName,

Loading…
Cancel
Save