fix(ui): ensure action bar is displayed
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 20 Feb 2024 17:12:40 +0000 (18:12 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 20 Feb 2024 17:12:40 +0000 (18:12 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/src/App.vue
ui/web/src/components/actions/AddChargingStations.vue
ui/web/src/views/ChargingStationsView.vue

index ab08dea67870a367f5eb427b7d1bea896a635db3..325c6bd8675d0ccc564da9b40272bff2467a7e0d 100644 (file)
@@ -1,6 +1,6 @@
 <template>
   <router-view />
-  <Container id="action-container">
+  <Container v-show="$route.path !== '/'" id="action-container">
     <router-view name="action" />
   </Container>
 </template>
index 9acd2d5e67c5c15f62923cd7a96fd66a9bc43c6b..8412fdd0a7374251cd0b89d842fc23691bcd8c25 100644 (file)
@@ -2,7 +2,7 @@
   <h1 id="action">Action</h1>
   <h2>Add Charging Stations</h2>
   <p>Template:</p>
-  <select v-if="state.ready" v-model="state.template">
+  <select v-show="state.ready" v-model="state.template">
     <option disabled value="">Please select a template</option>
     <option v-for="template in app?.appContext.config.globalProperties.$templates">
       {{ template }}
index 50851055cf25f924300840e4ebcd6b2ebce23fb9..d5868083d15ce558d2fcbc0842aef2d4e79e48fb 100644 (file)
@@ -13,7 +13,7 @@
       />
     </Container>
     <CSTable
-      v-if="
+      v-show="
         Array.isArray(app?.appContext.config.globalProperties.$chargingStations) &&
         app?.appContext.config.globalProperties.$chargingStations.length > 0
       "
@@ -94,7 +94,6 @@ const stopSimulator = (): void => {
 #charging-stations-container {
   height: fit-content;
   width: 100%;
-  position: absolute;
   display: flex;
   flex-direction: column;
 }