From: Jérôme Benoit Date: Fri, 26 Aug 2022 10:24:08 +0000 (+0200) Subject: Web UI: display charging stations' registration status X-Git-Tag: v1.1.67~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=333c35663eece40be004dcbe0ae565071837c957;hp=16fe3949f743c57db407cc02a5c017af4da1c7a9;p=e-mobility-charging-stations-simulator.git Web UI: display charging stations' registration status Signed-off-by: Jérôme Benoit --- diff --git a/src/ui/web/src/components/charging-stations/CSData.vue b/src/ui/web/src/components/charging-stations/CSData.vue index fac035d0..661ea289 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() }} @@ -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; diff --git a/src/ui/web/src/components/charging-stations/CSTable.vue b/src/ui/web/src/components/charging-stations/CSTable.vue index dc4865a1..4cc5da9a 100644 --- a/src/ui/web/src/components/charging-stations/CSTable.vue +++ b/src/ui/web/src/components/charging-stations/CSTable.vue @@ -8,6 +8,7 @@ Transaction Name Stopped + Registration Status Vendor Model Firmware Version @@ -90,6 +91,7 @@ const props = defineProps<{ .cs-table__transaction-col, .cs-table__name-col, .cs-table__stopped-col, +.cs-table__registration-status-col, .cs-table__model-col, .cs-table__vendor-col, .cs-table__firmware-col { @@ -120,6 +122,9 @@ const props = defineProps<{ .cs-table__stopped-col { /* min-width: 120px; */ } +.cs-table__registration-status-col { + /* min-width: 120px; */ +} .cs-table__model-col { /* min-width: 120px; */ }