Browse Source

fix(gui-v2): reload the page if the same form view is clicked

pull/3263/head
Wing-Kam Wong 2 years ago
parent
commit
598ac08089
  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