Wifi devices should not be deletable (UVL override)
This commit is contained in:
parent
803cbec182
commit
7b99529d95
2 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@ arg[1] = arg[1] or ""
|
||||||
m = Map("wireless", translate("networks"), translate("a_w_networks1"))
|
m = Map("wireless", translate("networks"), translate("a_w_networks1"))
|
||||||
|
|
||||||
s = m:section(NamedSection, arg[1], "wifi-device", translate("device") .. " " .. arg[1])
|
s = m:section(NamedSection, arg[1], "wifi-device", translate("device") .. " " .. arg[1])
|
||||||
--s.addremove = true
|
s.addremove = false
|
||||||
|
|
||||||
back = s:option(DummyValue, "_overview", translate("overview"))
|
back = s:option(DummyValue, "_overview", translate("overview"))
|
||||||
back.value = ""
|
back.value = ""
|
||||||
|
|
|
@ -127,6 +127,7 @@ end
|
||||||
-- Config Section --
|
-- Config Section --
|
||||||
|
|
||||||
s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
|
s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices"))
|
||||||
|
s.addremove = false
|
||||||
|
|
||||||
en = s:option(Flag, "disabled", translate("enable"))
|
en = s:option(Flag, "disabled", translate("enable"))
|
||||||
en.enabled = "0"
|
en.enabled = "0"
|
||||||
|
|
Loading…
Reference in a new issue