mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +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)
|
||||
content += "<button onclick='PauseBattery(false)'>Resume charge/discharge</button>";
|
||||
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 += "<button onclick='OTA()'>Perform OTA update</button>";
|
||||
content += " ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue