X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fui%2Fweb%2Fsrc%2Fcomponents%2Fcharging-stations%2FCSData.vue;h=3de9a7d6ebe4d0d41ac43e031aedcbd8d83aee98;hb=f27eb751a2eb332306ecb9c5c4f0578d3bf66ee4;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..3de9a7d6 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() }} |
@@ -19,12 +20,12 @@
import CSConnector from './CSConnector.vue';
// import { reactive } from 'vue';
-import Utils from '@/composable/Utils';
-import {
+import Utils from '@/composables/Utils';
+import type {
ChargingStationData,
ChargingStationInfo,
ConnectorStatus,
-} from '@/type/ChargingStationType';
+} from '@/types/ChargingStationType';
const props = defineProps<{
chargingStation: ChargingStationData;
@@ -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;