From 2bd6844d8954101846e29e9c7335f54ff52d2c79 Mon Sep 17 00:00:00 2001
From: richonguzman <richon2001@hotmail.com>
Date: Sun, 6 Oct 2024 22:59:58 -0300
Subject: [PATCH] WiFiAP Active switch added

---
 data_embed/index.html | 15 +++++++++++++++
 data_embed/script.js  |  1 +
 2 files changed, 16 insertions(+)

diff --git a/data_embed/index.html b/data_embed/index.html
index 202ffaa..255487c 100644
--- a/data_embed/index.html
+++ b/data_embed/index.html
@@ -1465,6 +1465,21 @@ <h5>
                             </div>
                             <div class="col-lg-9 col-sm-12">
                                 <div class="col-12">
+                                    <div class="form-check form-switch">
+                                        <input
+                                            type="checkbox"
+                                            name="wifi.autoAP.active"
+                                            id="wifi.autoAP.active"
+                                            class="form-check-input"
+                                        />
+                                        <label
+                                            for="wifi.autoAP.active"
+                                            class="form-label"
+                                            >WiFi AP Active<small> (Caution: Not Active means No WebUI Configuration)</small></label
+                                        >
+                                    </div>
+                                </div>
+                                <div class="col-12 mt-3">
                                     <label
                                         for="wifi.autoAP.password"
                                         class="form-label"
diff --git a/data_embed/script.js b/data_embed/script.js
index 6771e7f..fcee781 100644
--- a/data_embed/script.js
+++ b/data_embed/script.js
@@ -195,6 +195,7 @@ function loadSettings(settings) {
     document.getElementById("other.rebootModeTime").value               = settings.other.rebootModeTime;
 
     // WiFi Auto AP
+    document.getElementById("wifi.autoAP.active").checked               = settings.wifi.autoAP.active;
     document.getElementById("wifi.autoAP.password").value               = settings.wifi.autoAP.password;
     document.getElementById("wifi.autoAP.timeout").value                = settings.wifi.autoAP.timeout;