X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Fcharging-stations%2FCSData.vue;h=ab9c8208a453d820dab67318bd68415c8bc52de2;hb=f568f36861d62d759a95b17fbe10380eca88a71b;hp=040ba02b59476d3d19c17a325879ded93c851bfa;hpb=4147bb7ee6c183f244a10431b4dc53d71917f611;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/components/charging-stations/CSData.vue b/ui/web/src/components/charging-stations/CSData.vue index 040ba02b..ab9c8208 100644 --- a/ui/web/src/components/charging-stations/CSData.vue +++ b/ui/web/src/components/charging-stations/CSData.vue @@ -21,7 +21,7 @@ // import { reactive } from 'vue'; import CSConnector from './CSConnector.vue'; import type { ChargingStationData, ChargingStationInfo, ConnectorStatus } from '@/types'; -import Utils from '@/composables/Utils'; +import { ifUndefined } from '@/composables/Utils'; const props = defineProps<{ chargingStation: ChargingStationData; @@ -59,7 +59,7 @@ function getHashId(): string { return getInfo().hashId; } function getId(): string { - return Utils.ifUndefined(getInfo().chargingStationId, 'Ø'); + return ifUndefined(getInfo().chargingStationId, 'Ø'); } function getModel(): string { return getInfo().chargePointModel; @@ -68,7 +68,7 @@ function getVendor(): string { return getInfo().chargePointVendor; } function getFirmwareVersion(): string { - return Utils.ifUndefined(getInfo().firmwareVersion, 'Ø'); + return ifUndefined(getInfo().firmwareVersion, 'Ø'); } function getStarted(): string { return props.chargingStation.started === true ? 'Yes' : 'No';