mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
luci-mod-network: add arry destructuring in render function
This change is more elegant in comparison to the previous version. Signed-off-by: Christian Korber <ck@dev.tdt.de>
This commit is contained in:
committed by
Paul Donald
parent
70b7176fc2
commit
b8fcdb0dee
@@ -304,13 +304,8 @@ return view.extend({
|
||||
});
|
||||
},
|
||||
|
||||
render: function(hosts_duids_pools) {
|
||||
render: function([hosts, duids, pools, networks, macdata]) {
|
||||
var has_dhcpv6 = L.hasSystemFeature('dnsmasq', 'dhcpv6') || L.hasSystemFeature('odhcpd'),
|
||||
hosts = hosts_duids_pools[0],
|
||||
duids = hosts_duids_pools[1],
|
||||
pools = hosts_duids_pools[2],
|
||||
networks = hosts_duids_pools[3],
|
||||
macdata = hosts_duids_pools[4],
|
||||
m, s, o, ss, so, dnss;
|
||||
|
||||
let noi18nstrings = {
|
||||
|
||||
Reference in New Issue
Block a user