From: Florian Eckert Date: Mon, 7 May 2018 08:56:22 +0000 (+0200) Subject: luci-app-mwan3: add dependecy to size option X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2c6faaecd1be75d30a3b12563a5442c66df6f4cd;p=oweals%2Fluci.git 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 --- 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")