Move hashId to stationInfo
[e-mobility-charging-stations-simulator.git] / src / ui / web / src / components / charging-stations / CSTable.vue
index 4cc5da9afefcd42e51a314f50bbbfa77ff50bd08..ccd7db14e4fc4862e7765e1822daf27c978c0ea4 100644 (file)
@@ -17,7 +17,7 @@
     <tbody id="cs-table__body">
       <CSData
         v-for="chargingStation in chargingStations"
-        :key="chargingStation.hashId"
+        :key="chargingStation.stationInfo.hashId"
         :charging-station="chargingStation"
         :idTag="props.idTag"
       />
@@ -27,7 +27,7 @@
 
 <script setup lang="ts">
 import CSData from './CSData.vue';
-import { ChargingStationData } from '@/type/ChargingStationType';
+import type { ChargingStationData } from '@/types/ChargingStationType';
 
 const props = defineProps<{
   chargingStations: Record<string, ChargingStationData>;
@@ -37,11 +37,9 @@ const props = defineProps<{
 
 <style>
 #cs-table {
-  background-color: white;
-
   height: 100%;
   width: 100%;
-
+  background-color: white;
   display: flex;
   flex-grow: 1;
   flex-direction: column;
@@ -52,35 +50,28 @@ const props = defineProps<{
 
 #cs-table__head,
 #cs-table__body {
-  display: block;
-  /* flex-direction: column;
-  justify-content: space-evenly; */
+  height: fit-content;
   width: 100%;
-  min-width: 934px;
-  /* box-sizing: border-box; */
-}
-#cs-table__head {
-  /* width: 100%; */
-  /* display: block; */
+  min-width: 100%;
+  display: block;
 }
+
 #cs-table__body {
-  /* width: 100%; */
-  /* direction: rtl; */
   overflow: visible overlay;
   flex-grow: 1;
 }
 
 .cs-table__row {
   width: 100%;
-  /* display: inline-block; */
   display: flex;
   justify-content: center;
   align-items: center;
-  /* align-content: stretch; */
 }
+
 #cs-table__head .cs-table__row {
   background-color: rgb(194, 188, 188);
 }
+
 .cs-table__row:nth-of-type(even) {
   background-color: rgb(223, 217, 217);
 }
@@ -99,39 +90,6 @@ const props = defineProps<{
   width: 20%;
   padding-top: 0.2%;
   padding-bottom: 0.2%;
-  /* background-color: red; */
   text-align: center;
-  /* display: table-cell;
-  vertical-align: middle; */
-}
-.cs-table__action-col {
-  /* min-width: 200px; */
-}
-.cs-table__connector-col {
-  /* min-width: 120px; */
-}
-.cs-table__status-col {
-  /* min-width: 120px; */
-}
-.cs-table__transaction-col {
-  /* min-width: 120px; */
-}
-.cs-table__name-col {
-  /* min-width: 120px; */
-}
-.cs-table__stopped-col {
-  /* min-width: 120px; */
-}
-.cs-table__registration-status-col {
-  /* min-width: 120px; */
-}
-.cs-table__model-col {
-  /* min-width: 120px; */
-}
-.cs-table__vendor-col {
-  /* min-width: 120px; */
-}
-.cs-table__firmware-col {
-  /* min-width: 120px; */
 }
 </style>