fix(ui): move v-show to the UI server container component
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 26 Feb 2024 23:21:44 +0000 (00:21 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 26 Feb 2024 23:21:44 +0000 (00:21 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/views/ChargingStationsView.vue

index fe660111bee8fbc77137f8c2485d8bef5af9653f..cb8d607d6b79911560061832ff980e8168639db7 100644 (file)
@@ -1,8 +1,10 @@
 <template>
   <Container id="charging-stations-container">
-    <Container id="ui-server-container">
+    <Container
+      v-show="Array.isArray(uiServerConfigurations) && uiServerConfigurations.length > 1"
+      id="ui-server-container"
+    >
       <select
-        v-show="Array.isArray(uiServerConfigurations) && uiServerConfigurations.length > 1"
         id="ui-server-selector"
         v-model="state.uiServerIndex"
         @change="