From 80133ece4bc3d827bdf49215eb5138ba442f36e4 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 13 Dec 2019 14:07:57 +0000 Subject: [PATCH] Disable toggle if managed mode not enabled. Resolves #455 --- templates/hostapd.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/hostapd.php b/templates/hostapd.php index 578f48ef..316220ac 100755 --- a/templates/hostapd.php +++ b/templates/hostapd.php @@ -130,9 +130,13 @@ $checkedWifiAPEnabled = ''; if ($arrHostapdConf['WifiAPEnable'] == 1) { $checkedWifiAPEnabled = ' checked="checked"'; + } + if ($managedModeEnabled == false) { + $wifiAPToggle = "disabled"; + $wifiAPHelp = "Managed mode not enabled"; } ?> - " data-off="" data-width="110" data-height="40" value="1" /> + " data-off="" data-width="110" data-height="40" value="1" /> @@ -144,7 +148,7 @@ $checkedLogEnabled = ''; if ($arrHostapdConf['LogEnable'] == 1) { $checkedLogEnabled = ' checked="checked"'; - } + } ?> " data-off="" data-width="110" data-height="40" value="1" />