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:
Christian Korber
2025-09-10 08:31:55 +02:00
committed by Paul Donald
parent 70b7176fc2
commit b8fcdb0dee

View File

@@ -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 = {