From c30881f73c33d2e81691ad84ded5f220694d9ab4 Mon Sep 17 00:00:00 2001 From: Slider0007 Date: Mon, 1 May 2023 20:00:41 +0200 Subject: [PATCH] Hide "manual flow start" --- sd-card/html/index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sd-card/html/index.html b/sd-card/html/index.html index 54cc638c..b02fce1e 100644 --- a/sd-card/html/index.html +++ b/sd-card/html/index.html @@ -120,9 +120,9 @@
  • Info
  • -
  • Manual Control +
  • @@ -145,7 +145,7 @@ console.log("Loading page: " + getCookie("page")); document.getElementById('maincontent').src = getCookie("page"); - + /* function flow_start() { var url = getDomainname() + '/flow_start'; var xhttp = new XMLHttpRequest(); @@ -166,6 +166,7 @@ xhttp.open("GET", url, true); xhttp.send(); } + */ function HA_send_discovery_visiblilty() { @@ -173,8 +174,10 @@ ParseConfig(); category = getConfigCategory(); param = getConfigParameters(); - if (category["MQTT"]["enabled"] && param["MQTT"]["HomeassistantDiscovery"]["value1"] == "true") + if (category["MQTT"]["enabled"] && param["MQTT"]["HomeassistantDiscovery"]["value1"] == "true") { + document.getElementById("ManualControl").style.display=""; document.getElementById("HASendDiscovery").style.display=""; + } }