luci-app-mwan3: only show timeout if sticky is set
authorFlorian Eckert <fe@dev.tdt.de>
Tue, 30 Nov 2021 10:25:01 +0000 (11:25 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 6 Dec 2021 14:02:53 +0000 (15:02 +0100)
Redmine-patch-id: 6621
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/network/rule.js

index 47a2c6c4898ffbf17a0c9dbdd470db23fad88c93..6452caf58a6af479b2280a05249aa06497ef752f 100644 (file)
@@ -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\")'));