From: Jérôme Benoit Date: Wed, 28 Feb 2024 23:40:01 +0000 (+0100) Subject: fix(ui): close add charging stations action at UI server switch X-Git-Tag: v1.2.38~26 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=de3e2a49ef1c8b39ab1992c7e217aec48c67aa90;p=e-mobility-charging-stations-simulator.git fix(ui): close add charging stations action at UI server switch Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index 5123ece6..03d0ee2b 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -21,6 +21,8 @@ () => { setToLocalStorage('uiServerConfigurationIndex', state.uiServerIndex) delete app?.appContext.config.globalProperties.$templates + $router.currentRoute.value.name === 'add-charging-stations' && + $router.push({ name: 'charging-stations' }) }, { once: true } )