From: Jérôme Benoit Date: Wed, 28 Feb 2024 23:43:20 +0000 (+0100) Subject: fix(ui): ensure opened actions are closed at UI server switch X-Git-Tag: v1.2.38~25 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a4edfbb3a5e5c7fb55ef6b4cd4e3394defb09e03;p=e-mobility-charging-stations-simulator.git fix(ui): ensure opened actions are closed 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 03d0ee2b..90433782 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -21,7 +21,7 @@ () => { setToLocalStorage('uiServerConfigurationIndex', state.uiServerIndex) delete app?.appContext.config.globalProperties.$templates - $router.currentRoute.value.name === 'add-charging-stations' && + $router.currentRoute.value.name !== 'charging-stations' && $router.push({ name: 'charging-stations' }) }, { once: true }