From: Steven Barth Date: Fri, 31 Oct 2008 10:03:27 +0000 (+0000) Subject: Wifi devices should not be deletable (UVL override) X-Git-Tag: 0.9.0~1038 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7b99529d954a19f2b5003d2c14ae2e7a6a30d5cf;p=oweals%2Fluci.git Wifi devices should not be deletable (UVL override) --- diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua index c095cc529..b61db62ac 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/wifi.lua @@ -17,7 +17,7 @@ arg[1] = arg[1] or "" m = Map("wireless", translate("networks"), translate("a_w_networks1")) 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.value = "" diff --git a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua index 31242b74b..7327b9e1d 100644 --- a/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua +++ b/modules/admin-mini/luasrc/model/cbi/mini/wifi.lua @@ -127,6 +127,7 @@ end -- Config Section -- s = m:section(NamedSection, wifidevs[1], "wifi-device", translate("devices")) +s.addremove = false en = s:option(Flag, "disabled", translate("enable")) en.enabled = "0"