Skip to content

Commit fcd86dd

Browse files
committed
Add option for only FW update from remote server
1 parent 887bcf9 commit fcd86dd

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

data/js/updates.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,10 @@ async function scanWifi()
5555
opt.text = network.ssid;
5656
s.add(opt)
5757
}
58+
}
59+
60+
function toggleData()
61+
{
62+
const dataField = eByID("newData_url")
63+
dataField.disabled = !dataField.disabled
5864
}

src/web_config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ String webConfigRequest(AsyncWebServerRequest *request)
7272
response += "<form action=\"" + String(UPDATE_REMOTE_URL) + "\" method=\"post\">";
7373
response += "<input type=\"hidden\" id=\"newFW_url\" name=\"newFW_url\" />";
7474
response += "<input type=\"hidden\" id=\"newData_url\" name=\"newData_url\"/>";
75+
response += "<input type=\"checkbox\" id=\"updateData\" onClick=\"toggleData()\" checked />Update Dashboard Data<br/>";
7576
response += "<input type=\"submit\" value=\"Update\" id=\"update_btn\" disabled/>";
7677
response += "</form>";
7778
response += "<h2>Manual Update</h2>";

0 commit comments

Comments
 (0)