refactor(ui): refine action bar style
[e-mobility-charging-stations-simulator.git] / ui / web / src / views / ChargingStationsView.vue
index 5639c99174d0c9af6480561d87410d17e441781e..8df77d92429646b638ce576b7e2df4085b22f6db 100644 (file)
@@ -1,9 +1,9 @@
 <template>
   <Container id="charging-stations-container">
     <Container id="buttons-container">
-      <Button id="button" @click="startSimulator()">Start Simulator</Button>
-      <Button id="button" @click="stopSimulator()">Stop Simulator</Button>
-      <Button id="button" @click="$router.push({ name: 'add-charging-stations' })">
+      <Button @click="startSimulator()">Start Simulator</Button>
+      <Button @click="stopSimulator()">Stop Simulator</Button>
+      <Button @click="$router.push({ name: 'add-charging-stations' })">
         Add Charging Stations
       </Button>
       <ReloadButton
@@ -12,7 +12,7 @@
         @click="loadChargingStations(() => $router.go(0))"
       />
     </Container>
-    <CSTable :charging-stations="app?.appContext.config.globalProperties.$chargingStations ?? []" />
+    <CSTable :charging-stations="app?.appContext.config.globalProperties.$chargingStations" />
   </Container>
 </template>
 
@@ -94,8 +94,8 @@ const stopSimulator = (): void => {
   flex-direction: row;
 }
 
-#button {
-  flex: auto;
+#action-button {
+  flex: none;
 }
 
 #reload-button {
@@ -115,4 +115,10 @@ const stopSimulator = (): void => {
 #reload-button:active {
   background-color: red;
 }
+
+#action {
+  color: white;
+  background-color: black;
+  padding: 1%;
+}
 </style>