luci-mod-network: show leases first in DHCP tab

Fiddling with the dnsmasq/odhcpd specific settings is (at least in my
experience) a much less common operation than wanting to see/change
leases and their configuration, so reorder the tabs to show leases first
and dnsmasq/odhcpd tabs second/third.

Signed-off-by: David Härdeman <david@hardeman.nu>
This commit is contained in:
David Härdeman
2025-12-30 18:31:17 +01:00
committed by Paul Donald
parent c1c29d2ecd
commit 7a18a0ef42
@@ -211,14 +211,14 @@ return view.extend({
m = new form.Map('dhcp', _('DHCP'));
m.tabbed = true;
this.add_leases_cfg(m, hosts, duids, pools, macdata);
if (L.hasSystemFeature('dnsmasq'))
this.add_dnsmasq_cfg(m, networks);
if (L.hasSystemFeature('odhcpd'))
this.add_odhcpd_cfg(m);
this.add_leases_cfg(m, hosts, duids, pools, macdata);
return m.render().then(function(mapEl) {
poll.add(function() {
return callDHCPLeases().then(function(leaseinfo) {