From 2af8158fa8c3ec8fab2380b967e708066a9dce98 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 30 Nov 2021 11:25:01 +0100 Subject: [PATCH] luci-app-mwan3: only show timeout if sticky is set Redmine-patch-id: 6621 Signed-off-by: Florian Eckert --- .../htdocs/luci-static/resources/view/mwan3/network/rule.js | 1 + 1 file changed, 1 insertion(+) 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\")')); -- 2.30.2