diff --git a/src/WebCfgServer.cpp b/src/WebCfgServer.cpp index 0ee333c..d5dce6f 100644 --- a/src/WebCfgServer.cpp +++ b/src/WebCfgServer.cpp @@ -4041,10 +4041,11 @@ esp_err_t WebCfgServer::buildConfigureWifiHtml(PsychicRequest *request) PsychicStreamResponse response(request, "text/plain"); response.beginSend(); buildHtmlHeader(&response); + response.print("
"); response.print("

Wi-Fi

"); - response.print("Click confirm to remove saved WiFi settings and restart ESP into Wi-Fi configuration mode. After restart, connect to ESP access point to reconfigure Wi-Fi.

"); - String wifiMgrUrl = "/wifimanager?CONFIRMTOKEN=" + _confirmCode; - buildNavigationButton(&response, "Confirm", wifiMgrUrl.c_str()); + response.print("Click confirm to remove saved WiFi settings and restart ESP into Wi-Fi configuration mode. After restart, connect to ESP access point to reconfigure Wi-Fi.


"); + response.print("
"); + response.print(""); response.print(""); return response.endSend(); } @@ -4896,18 +4897,6 @@ void WebCfgServer::printDropDown(PsychicStreamResponse *response, const char *to response->print(""); } -void WebCfgServer::buildNavigationButton(PsychicStreamResponse *response, const char *caption, const char *targetPath, const char* labelText) -{ - response->print("
print(targetPath); - response->print("\">"); - response->print(" "); - response->print(labelText); - response->print("
"); -} - void WebCfgServer::buildNavigationMenuEntry(PsychicStreamResponse *response, const char *title, const char *targetPath, const char* warningMessage) { response->print("> options, const String className); - void buildNavigationButton(PsychicStreamResponse *response, const char* caption, const char* targetPath, const char* labelText = ""); void buildNavigationMenuEntry(PsychicStreamResponse *response, const char *title, const char *targetPath, const char* warningMessage = ""); const std::vector> getNetworkDetectionOptions() const;