luci-mod-network: mark the ignore flag as dnsmasq-only

And also hide the flag if dnsmasq isn't installed.

Signed-off-by: David Härdeman <david@hardeman.nu>
This commit is contained in:
David Härdeman
2025-10-23 19:04:49 +02:00
committed by Paul Donald
parent 563d90cfb9
commit 3feda7487c

View 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')) {