X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FAddChargingStations.vue;h=51e8a83093f1f2591e74bf32957318edf595f132;hb=2cd5640f2aa372aaff46638d7eac515825a627cf;hp=b1409bb714087e40c98900c20f2a415b42dedb0e;hpb=7086aac2294163414002bc34bab83acf515a5d37;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 b1409bb7..51e8a830 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -1,20 +1,146 @@ - Action Add Charging Stations + Action + Add Charging Stations + Template: + + Please select a template + + {{ template }} + + + Number of stations: + + Template options overrides: + + + Supervision url: + + + + Auto start: + + + + Persistent configuration: + + + + OCPP strict compliance: + + + + Performance statistics: + + + + + { + 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) => { + $toast.error('Error at adding charging stations') + console.error('Error at adding charging stations:', error) + }) + .finally(() => { + $router.push({ name: 'charging-stations' }) + }) + } + " + > + Add Charging Stations + + Cancel - +
Template:
Number of stations:
Template options overrides: