X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FAddChargingStations.vue;h=2cac132291276d62c633309c1d0492231118a625;hb=7e31543058b67b8ca9991b01820f88ab7f4f16b0;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..2cac1322 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -1,8 +1,12 @@ - Action Add Charging Stations + Add Charging Stations Template: - - + + Please select a template + {{ template }} @@ -10,18 +14,73 @@ + Template options overrides: + + + Supervision url: + + + + Auto start: + + + + Persistent configuration: + + + + OCPP strict compliance: + + + + Performance statistics: + + + { - uiClient - .addChargingStations(state.template, state.numberOfStations) + $uiClient + .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,45 +88,48 @@ }) } " - >Add Charging Stations - Cancel + Add Charging Stations +
Template:
Template options overrides: