X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FStartTransaction.vue;fp=ui%2Fweb%2Fsrc%2Fcomponents%2Factions%2FStartTransaction.vue;h=6a96e34df4dccf80efe23ad024612d56ea957131;hb=cea23fa0af66a39cc3bf089217b90e1b5e9f0def;hp=62fe31f1ceac25c92d341cd8bc86385ac84712d1;hpb=f8696170fe4343a6fef450a6f0d4a47daccbcee0;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/components/actions/StartTransaction.vue b/ui/web/src/components/actions/StartTransaction.vue index 62fe31f1..6a96e34d 100644 --- a/ui/web/src/components/actions/StartTransaction.vue +++ b/ui/web/src/components/actions/StartTransaction.vue @@ -9,8 +9,11 @@ () => { uiClient .startTransaction(props.hashId, parseInt(props.connectorId), state.idTag) + .then(() => { + $toast.success('Transaction successfully started') + }) .catch((error: Error) => { - // TODO: add code for UI notifications or other error handling logic + $toast.error('Error at starting transaction') console.error('Error at starting transaction:', error) }) .finally(() => {