Web UI: add one UT
[e-mobility-charging-stations-simulator.git] / src / ui / web / src / components / charging-stations / CSData.vue
index fac035d04cfa69008c583ea3e7c31777726eb6ae..08a72d5e6e5bb801a3a05a6fb39d36498812fcdd 100644 (file)
@@ -9,6 +9,7 @@
     />
     <td class="cs-table__name-col">{{ getId() }}</td>
     <td class="cs-table__stopped-col">{{ getStopped() }}</td>
+    <td class="cs-table__registration-status-col">{{ getRegistrationStatus() }}</td>
     <td class="cs-table__vendor-col">{{ getVendor() }}</td>
     <td class="cs-table__model-col">{{ getModel() }}</td>
     <td class="cs-table__firmware-col">{{ getFirmwareVersion() }}</td>
@@ -20,7 +21,7 @@ import CSConnector from './CSConnector.vue';
 
 // import { reactive } from 'vue';
 import Utils from '@/composable/Utils';
-import {
+import type {
   ChargingStationData,
   ChargingStationInfo,
   ConnectorStatus,
@@ -63,7 +64,10 @@ function getFirmwareVersion(): string {
   return Utils.ifUndefined<string>(getInfo().firmwareVersion, 'Ø');
 }
 function getStopped(): string {
-  return props.chargingStation.stopped ? 'Yes' : 'No';
+  return props.chargingStation.stopped === true ? 'Yes' : 'No';
+}
+function getRegistrationStatus(): string {
+  return props.chargingStation?.bootNotificationResponse?.status ?? 'Ø';
 }
 // function showTagModal(): void {
 //   state.isTagModalVisible = true;