mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Added confirmation alert for "Pause Charge/Discharge" functionality
This commit is contained in:
parent
b9b328bb38
commit
602c45b70b
1 changed files with 4 additions and 1 deletions
|
@ -851,7 +851,10 @@ String processor(const String& var) {
|
||||||
if (emulator_pause_request_ON)
|
if (emulator_pause_request_ON)
|
||||||
content += "<button onclick='PauseBattery(false)'>Resume charge/discharge</button>";
|
content += "<button onclick='PauseBattery(false)'>Resume charge/discharge</button>";
|
||||||
else
|
else
|
||||||
content += "<button onclick='PauseBattery(true)'>Pause charge/discharge</button>";
|
content +=
|
||||||
|
"<button onclick=\"if(confirm('Are you sure you want to pause charging and discharging? This will set the "
|
||||||
|
"maximum charge and discharge values to zero, preventing any further power flow.')) { PauseBattery(true); "
|
||||||
|
"}\">Pause charge/discharge</button>";
|
||||||
content += " ";
|
content += " ";
|
||||||
content += "<button onclick='OTA()'>Perform OTA update</button>";
|
content += "<button onclick='OTA()'>Perform OTA update</button>";
|
||||||
content += " ";
|
content += " ";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue