luci-mod-network: widgets shall show devices that are online as online

follow-up to 832680bb84

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2025-04-24 00:13:26 +02:00
parent 1f50dea160
commit f17ae7fd96
No known key found for this signature in database
GPG Key ID: 3FC4A933962871D2
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ var CBINetworkSelect = form.ListValue.extend({
for (var j = 0; j < devices.length && devices[j]; j++) { for (var j = 0; j < devices.length && devices[j]; j++) {
span.appendChild(E('img', { span.appendChild(E('img', {
'title': devices[j].getI18n(), 'title': devices[j].getI18n(),
'src': L.resource('icons/%s%s.png'.format(devices[j].getType(), devices[j].isUp() ? '' : '_disabled')) 'src': L.resource('icons/%s%s.png'.format(devices[j].getType(), network.isUp() ? '' : '_disabled'))
})); }));
} }