repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Web UI: display charging stations' registration status
[e-mobility-charging-stations-simulator.git]
/
src
/
ui
/
web
/
src
/
components
/
charging-stations
/
CSData.vue
diff --git
a/src/ui/web/src/components/charging-stations/CSData.vue
b/src/ui/web/src/components/charging-stations/CSData.vue
index fac035d04cfa69008c583ea3e7c31777726eb6ae..661ea289d69a65791fbba71019c2028da6d506c7 100644
(file)
--- a/
src/ui/web/src/components/charging-stations/CSData.vue
+++ b/
src/ui/web/src/components/charging-stations/CSData.vue
@@
-9,6
+9,7
@@
/>
<td class="cs-table__name-col">{{ getId() }}</td>
<td class="cs-table__stopped-col">{{ getStopped() }}</td>
/>
<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>
<td class="cs-table__vendor-col">{{ getVendor() }}</td>
<td class="cs-table__model-col">{{ getModel() }}</td>
<td class="cs-table__firmware-col">{{ getFirmwareVersion() }}</td>
@@
-63,7
+64,10
@@
function getFirmwareVersion(): string {
return Utils.ifUndefined<string>(getInfo().firmwareVersion, 'Ø');
}
function getStopped(): 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;
}
// function showTagModal(): void {
// state.isTagModalVisible = true;