Browse Source

Merge pull request #3356 from nocodb/fix/form-page-reload

fix: avoid complete page reload on clicking view name in right navbar
pull/3365/head
Raju Udava 2 years ago committed by GitHub
parent
commit
c782dcc759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

6
packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

@ -146,7 +146,11 @@ function changeView(view: { id: string; alias?: string; title?: string; type: Vi
router.push({ params: { viewTitle: view.title || '' } }) router.push({ params: { viewTitle: view.title || '' } })
if (view.type === 1 && selected.value[0] === view.id) { if (view.type === 1 && selected.value[0] === view.id) {
// reload the page if the same form view is clicked // reload the page if the same form view is clicked
router.go(0) // router.go(0)
// fix me: router.go(0) reloads entire page. need to reload only the form view
router.replace({ query: { reload: 'true' } }).then(() => {
router.replace({ query: {} })
})
} }
} }

Loading…
Cancel
Save