From: Florian Eckert Date: Tue, 30 Nov 2021 10:25:01 +0000 (+0100) Subject: luci-app-mwan3: only show timeout if sticky is set X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2af8158fa8c3ec8fab2380b967e708066a9dce98;p=project%2Fluci.git luci-app-mwan3: only show timeout if sticky is set Redmine-patch-id: 6621 Signed-off-by: Florian Eckert --- diff --git a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js index 47a2c6c489..6452caf58a 100644 --- a/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js +++ b/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js @@ -78,6 +78,7 @@ return view.extend({ _('Seconds. Acceptable values: 1-1000000. Defaults to 600 if not set')); o.datatype = 'range(1, 1000000)'; o.modalonly = true; + o.depends('sticky', '1'); o = s.option(form.Value, 'ipset', _('IPset'), _('Name of IPset rule. Requires IPset rule in /etc/dnsmasq.conf (eg \"ipset=/youtube.com/youtube\")'));