summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-22 01:41:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-22 01:41:26 +0000
commit0252fb9da783b8e831108dd7248ed747d8b33229 (patch)
treef0470aadc3117b0e18883cfb217ff6d25f8fe1c8 /applications
parent59e95ddcadf5caac70d6f6228bf0c519297cc551 (diff)
applications/luci-vnstat: filter inactive interfaces in preferences
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-vnstat/luasrc/model/cbi/vnstat.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua b/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
index 5c5e8f7aa..38b06ba9a 100644
--- a/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
+++ b/applications/luci-vnstat/luasrc/model/cbi/vnstat.lua
@@ -56,9 +56,11 @@ s.anonymous = true
s.addremove = false
mon_ifaces = s:option(Value, "interface", translate("Monitor selected interfaces"))
-mon_ifaces.template = "cbi/network_ifacelist"
-mon_ifaces.widget = "checkbox"
-mon_ifaces.cast = "table"
+mon_ifaces.template = "cbi/network_ifacelist"
+mon_ifaces.widget = "checkbox"
+mon_ifaces.cast = "table"
+mon_ifaces.noinactive = true
+mon_ifaces.nocreate = true
function mon_ifaces.write(self, section, val)
local i