X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FAddChargingStations.vue;h=ebcef5ed8eca0a6d623668d772f2d00285059e34;hb=0475290acf98bb3575aeeb62c772f0d60b440048;hp=164518b1f70e7fd8590d1b9b6dc1ab63998f4da9;hpb=878855a218443d8d0a610f1e79d8d4afaf07153a;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 164518b1..ebcef5ed 100644 --- a/ui/web/src/components/actions/AddChargingStations.vue +++ b/ui/web/src/components/actions/AddChargingStations.vue @@ -2,6 +2,7 @@

Action Add Charging Stations

Template:


@@ -20,8 +22,11 @@ () => { uiClient .addChargingStations(state.template, state.numberOfStations) + .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(() => { @@ -36,7 +41,9 @@