firmware wip - when restart is required, show restart info everywhere

This commit is contained in:
Marcus 2024-05-01 03:49:03 +02:00
parent 4d5d347885
commit 50b8dfd509

View file

@ -1422,6 +1422,10 @@ String returnHTMLheader(String MenuEntry = "") {
// close <ul> and start <div> // close <ul> and start <div>
header += "</ul><div class='center'>"; header += "</ul><div class='center'>";
if(NeedRestart == true) {
header += FPSTR(HTMLneedRestart);
}
return header; return header;
} }
@ -1868,9 +1872,7 @@ void WEBwifiSettings() {
body += "</p>"; body += "</p>";
} }
body += "<h2>WiFi config</h2>\n"; body += "<h2>WiFi config</h2>\n";
if(NeedRestart == true) {
body += FPSTR(HTMLneedRestart);
}
if(webserver.hasArg("success")) { if(webserver.hasArg("success")) {
body += FPSTR(HTMLsuccess); body += FPSTR(HTMLsuccess);
} }