X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FAddChargingStations.vue;h=51e8a83093f1f2591e74bf32957318edf595f132;hb=427a497022f0a5ff9454c618b6d3620521625923;hp=387d8a1a7110860e55a954878bc6b874403e21ed;hpb=3a3ba0a2986ae89bc2da0180dc37e3adf26b85ab;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/components/actions/AddChargingStations.vue b/ui/web/src/components/actions/AddChargingStations.vue index 387d8a1a..51e8a830 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -1,7 +1,9 @@ - Action Add Charging Stations + Action + Add Charging Stations Template: - + + Please select a template {{ template }} @@ -10,18 +12,73 @@ + Template options overrides: + + + Supervision url: + + + + Auto start: + + + + Persistent configuration: + + + + OCPP strict compliance: + + + + Performance statistics: + + + { uiClient - .addChargingStations(state.template, state.numberOfStations) + .addChargingStations(state.template, state.numberOfStations, { + supervisionUrls: state.supervisionUrl.length > 0 ? state.supervisionUrl : undefined, + autoStart: convertToBoolean(state.autoStart), + persistentConfiguration: convertToBoolean(state.persistentConfiguration), + ocppStrictCompliance: convertToBoolean(state.ocppStrictCompliance), + enableStatistics: convertToBoolean(state.enableStatistics) + }) + .then(() => { + $toast.success('Charging stations successfully added') + }) .catch((error: Error) => { - // TODO: add code for UI notifications or other error handling logic + $toast.error('Error at adding charging stations') console.error('Error at adding charging stations:', error) }) .finally(() => { @@ -29,25 +86,35 @@ }) } " - >Add Charging Stations - Cancel + Add Charging Stations + + Cancel
Template:
Template options overrides: