From 665e062061e72cb1621a927b1508e9cc56c199a2 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 13 Jul 2018 14:34:28 +0200 Subject: luci-app-mwan3: change interface enabled option to use flag cbi class Make mwan3 interface enable config option use cbi flag. Signed-off-by: Florian Eckert --- .../luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-mwan3/luasrc/model/cbi') diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua index a6570e341c..d01945bf4a 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -13,10 +13,8 @@ mwan_interface = m5:section(NamedSection, arg[1], "interface", "") mwan_interface.addremove = false mwan_interface.dynamic = false -enabled = mwan_interface:option(ListValue, "enabled", translate("Enabled")) -enabled.default = "1" -enabled:value("1", translate("Yes")) -enabled:value("0", translate("No")) +enabled = mwan_interface:option(Flag, "enabled", translate("Enabled")) +enabled.default = false initial_state = mwan_interface:option(ListValue, "initial_state", translate("Initial state"), translate("Expect interface state on up event")) -- cgit v1.2.3