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

index 03f73d638daa76af6472ba6547834c7ac3365f9b..5123ece678da09a4515308779556be489c77ebb2 100644 (file)
@@ -20,6 +20,7 @@
                 'open',
                 () => {
                   setToLocalStorage<number>('uiServerConfigurationIndex', state.uiServerIndex)
+                  delete app?.appContext.config.globalProperties.$templates
                 },
                 { once: true }
               )