From a4edfbb3a5e5c7fb55ef6b4cd4e3394defb09e03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 29 Feb 2024 00:43:20 +0100 Subject: [PATCH] fix(ui): ensure opened actions are closed 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, 1 insertion(+), 1 deletion(-) 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 } -- 2.34.1