Browse Source

Merge pull request #3263 from nocodb/fix/gui-v2-form-view-reload

fix(gui-v2): reload the page if the same form view is clicked
pull/3254/head
Raju Udava 2 years ago committed by GitHub
parent
commit
a5c0e7fa94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/nc-gui-v2/components/smartsheet/sidebar/MenuTop.vue

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

@ -137,6 +137,10 @@ onMounted(() => menuRef && initSortable(menuRef.$el))
/** Navigate to view by changing url param */
function changeView(view: { id: string; alias?: string; title?: string; type: ViewTypes }) {
router.push({ params: { viewTitle: view.title || '' } })
if (view.type === 1 && selected.value[0] === view.id) {
// reload the page if the same form view is clicked
router.go(0)
}
}
/** Rename a view */

Loading…
Cancel
Save