1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Display wifi and dhcp only if needed

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-07 21:00:12 +02:00
parent c24c0dd335
commit 1475c55343
3 changed files with 26 additions and 20 deletions

View file

@ -130,11 +130,13 @@ return baseclass.extend({
container_devices_list.appendChild(container_devices_item);
}
container_devices.appendChild(container_devices_list);
container_box.appendChild(E('hr'));
container_box.appendChild(container_devices);
container_box.appendChild(container_devices_list);
container_wapper.appendChild(container_box);
if (this.params.wifi.devices.length > 0) {
container_devices.appendChild(container_devices_list);
container_box.appendChild(E('hr'));
container_box.appendChild(container_devices);
container_box.appendChild(container_devices_list);
container_wapper.appendChild(container_box);
}
return container_wapper;
},