feat(ui): add action success/failure notifications
[e-mobility-charging-stations-simulator.git] / ui / web / src / components / actions / StartTransaction.vue
index 62fe31f1ceac25c92d341cd8bc86385ac84712d1..6a96e34df4dccf80efe23ad024612d56ea957131 100644 (file)
@@ -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(() => {