summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mwan3/htdocs/luci-static
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-11-30 11:25:01 +0100
committerFlorian Eckert <fe@dev.tdt.de>2021-12-06 15:02:53 +0100
commit2af8158fa8c3ec8fab2380b967e708066a9dce98 (patch)
tree5e3ba6e7a8403e61e1300d48b8fe614d4e922988 /applications/luci-app-mwan3/htdocs/luci-static
parent919436e47e0e78f10d5528e5b28dca492c3a14f2 (diff)
luci-app-mwan3: only show timeout if sticky is set
Redmine-patch-id: 6621 Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-mwan3/htdocs/luci-static')
-rw-r--r--applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js1
1 files changed, 1 insertions, 0 deletions
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\")'));