From 2c6faaecd1be75d30a3b12563a5442c66df6f4cd Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 7 May 2018 10:56:22 +0200 Subject: luci-app-mwan3: add dependecy to size option This option is only valid if track-method is set to "ping". Signed-off-by: Florian Eckert --- applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua | 1 + 1 file changed, 1 insertion(+) 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 a43950267..8cfeecd12 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua @@ -54,6 +54,7 @@ count:value("5") size = mwan_interface:option(Value, "size", translate("Ping size")) size.default = "56" +size:depends("track_method", "ping") size:value("8") size:value("24") size:value("56") -- cgit v1.2.3