luci-mod-network: mark the ignore flag as dnsmasq-only
authorDavid Härdeman <[email protected]>
Thu, 23 Oct 2025 17:04:49 +0000 (19:04 +0200)
committerPaul Donald <[email protected]>
Sat, 25 Oct 2025 13:31:08 +0000 (15:31 +0200)
And also hide the flag if dnsmasq isn't installed.

Signed-off-by: David Härdeman <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index 29fe309828f4436d31c2203c32b0dc746802a5e4..1a16049170de7caf88c20389aeaf00c4636fc9f3 100644 (file)
@@ -702,7 +702,10 @@ return view.extend({
                                                ]);
                                        };
 
-                                       ss.taboption('general', form.Flag, 'ignore', _('Ignore interface'), _('Disable <abbr title="Dynamic Host Configuration Protocol">DHCP</abbr> for this interface.'));
+                                       if (L.hasSystemFeature('dnsmasq')) {
+                                               ss.taboption('general', form.Flag, 'ignore', _('Ignore interface'),
+                                                            _('Disable <abbr title="Dynamic Host Configuration Protocol">DHCP</abbr> for this interface (dnsmasq only).'));
+                                       }
 
                                        if (protoval == 'static') {
                                                if (L.hasSystemFeature('odhcpd')) {