fix(ui): ensure opened actions are closed at UI server switch
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 28 Feb 2024 23:43:20 +0000 (00:43 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 28 Feb 2024 23:43:20 +0000 (00:43 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/views/ChargingStationsView.vue

index 03d0ee2b0ff1f50f64001597543d486f008a3220..90433782b17a68b413e94cefb92776a3e333cbb2 100644 (file)
@@ -21,7 +21,7 @@
                 () => {
                   setToLocalStorage<number>('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 }