From de3e2a49ef1c8b39ab1992c7e217aec48c67aa90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 29 Feb 2024 00:40:01 +0100 Subject: [PATCH] fix(ui): close add charging stations action at UI server switch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/views/ChargingStationsView.vue | 2 ++ 1 file changed, 2 insertions(+) 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 } ) -- 2.34.1