From: Jérôme Benoit Date: Fri, 26 Aug 2022 09:56:04 +0000 (+0200) Subject: Web UI: add and fix support for start/stop charging station X-Git-Tag: v1.1.67~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8fc2e5cc4eb4c5e8560a461f8d9c52e3a7a23b3d;p=e-mobility-charging-stations-simulator.git Web UI: add and fix support for start/stop charging station Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 5631a984..f74cf4bd 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -550,8 +550,8 @@ export default class ChargingStation { this.templateFileWatcher.close(); this.sharedLRUCache.deleteChargingStationTemplate(this.stationInfo?.templateHash); this.bootNotificationResponse = null; - parentPort.postMessage(MessageChannelUtils.buildStoppedMessage(this)); this.stopped = true; + parentPort.postMessage(MessageChannelUtils.buildStoppedMessage(this)); } public async reset(reason?: StopTransactionReason): Promise { diff --git a/src/ui/web/src/components/Modal.vue b/src/ui/web/src/components/Modal.vue index 20d7f0d5..954c9361 100644 --- a/src/ui/web/src/components/Modal.vue +++ b/src/ui/web/src/components/Modal.vue @@ -1,6 +1,6 @@