X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fui%2Fweb%2Fsrc%2Fcomponents%2Fcharging-stations%2FCSData.vue;h=08a72d5e6e5bb801a3a05a6fb39d36498812fcdd;hb=258a5c7f1cbdda8951d33aeedddaf5d4138dd0b8;hp=fac035d04cfa69008c583ea3e7c31777726eb6ae;hpb=8fc2e5cc4eb4c5e8560a461f8d9c52e3a7a23b3d;p=e-mobility-charging-stations-simulator.git diff --git a/src/ui/web/src/components/charging-stations/CSData.vue b/src/ui/web/src/components/charging-stations/CSData.vue index fac035d0..08a72d5e 100644 --- a/src/ui/web/src/components/charging-stations/CSData.vue +++ b/src/ui/web/src/components/charging-stations/CSData.vue @@ -9,6 +9,7 @@ /> {{ getId() }} {{ getStopped() }} + {{ getRegistrationStatus() }} {{ getVendor() }} {{ getModel() }} {{ getFirmwareVersion() }} @@ -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(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;