luci-mod-network: widgets shall show devices that are online as online
authorPaul Donald <[email protected]>
Wed, 23 Apr 2025 22:13:26 +0000 (00:13 +0200)
committerPaul Donald <[email protected]>
Wed, 23 Apr 2025 22:13:26 +0000 (00:13 +0200)
follow-up to 832680bb84d18132d04f424b7d70ce18d62e1150

Signed-off-by: Paul Donald <[email protected]>
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index 221af74cb071667f11de2fa5997c1ebfd63cb3e3..b2c54e622402b414073e48b52087f70aabf980cc 100644 (file)
@@ -360,7 +360,7 @@ var CBINetworkSelect = form.ListValue.extend({
                for (var j = 0; j < devices.length && devices[j]; j++) {
                        span.appendChild(E('img', {
                                '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'))
                        }));
                }