From 7a18a0ef42a6f3ac8a5e43fbcd5f90eac3d028bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Tue, 30 Dec 2025 18:31:17 +0100 Subject: [PATCH] luci-mod-network: show leases first in DHCP tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../htdocs/luci-static/resources/view/network/dhcp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index ed040fa7c1..509e9fe89e 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -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) {