Fix undefined availability

This commit is contained in:
iranl
2025-01-23 22:07:12 +01:00
parent 7ca760ecc0
commit 1b668f8e71
5 changed files with 21 additions and 4 deletions

View File

@@ -5002,6 +5002,7 @@ esp_err_t WebCfgServer::buildHtml(PsychicRequest *request, PsychicResponse* resp
printParameter(&response, "Latest Firmware", _preferences->getString(preference_latest_version).c_str(), "/get?page=ota", "ota");
}
response.print("</table><br>");
response.print("<ul id=\"tblnav\">");
buildNavigationMenuEntry(&response, "Network Configuration", "/get?page=ntwconfig");
buildNavigationMenuEntry(&response, "MQTT Configuration", "/get?page=mqttconfig", _brokerConfigured ? "" : "Please configure MQTT broker");
@@ -6932,7 +6933,7 @@ void WebCfgServer::printDropDown(PsychicStreamResponse *response, const char *to
void WebCfgServer::buildNavigationMenuEntry(PsychicStreamResponse *response, const char *title, const char *targetPath, const char* warningMessage)
{
response->print("<a href=\"");
response->print("<a class=\"naventry\" href=\"");
response->print(targetPath);
response->print("\">");
response->print("<li>");