mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user