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)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 15 May 2018 09:11:34 +0000 (11:11 +0200)
This option is only valid if track-method is set to "ping".

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
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")