UI Server: update CS list at ATG start/stop
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 12 Sep 2022 13:50:17 +0000 (15:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 12 Sep 2022 13:50:17 +0000 (15:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index a6694066adb1b5cb57a63a01e63ca5454f2581bb..7ce6c1f891b4c9d4ff4ff5ddf4307c189efa85e1 100644 (file)
@@ -731,6 +731,7 @@ export default class ChargingStation {
     } else {
       this.automaticTransactionGenerator.start();
     }
+    parentPort.postMessage(MessageChannelUtils.buildUpdatedMessage(this));
   }
 
   public stopAutomaticTransactionGenerator(connectorIds?: number[]): void {
@@ -743,6 +744,7 @@ export default class ChargingStation {
       this.automaticTransactionGenerator?.stop();
       this.automaticTransactionGenerator = null;
     }
+    parentPort.postMessage(MessageChannelUtils.buildUpdatedMessage(this));
   }
 
   public async stopTransactionOnConnector(