luci-app-mwan3: add dependecy to size option
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 7 May 2018 08:56:22 +0000 (10:56 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Wed, 16 May 2018 13:40:52 +0000 (16:40 +0300)
This option is only valid if track-method is set to "ping".

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 2c6faaecd1be75d30a3b12563a5442c66df6f4cd)

applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua

index a439502671e4a0a413ffd5bba3de21fabdd82d4a..8cfeecd12fcd365507bb5562b668b46a2e146752 100644 (file)
@@ -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")