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:56 +0000 (00:13 +0200)
follow-up to 832680bb84d18132d04f424b7d70ce18d62e1150

Signed-off-by: Paul Donald <[email protected]>
(cherry picked from commit f17ae7fd96f285aa564579f597f51e2679b27fd4)

modules/luci-base/htdocs/luci-static/resources/tools/widgets.js

index 4fc7d923b955b80b97ed1db85f4cf58dcf1db86b..4bd39cd4092d6b4b4f8545ab7d773a41d9f4b24d 100644 (file)
@@ -345,7 +345,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'))
                        }));
                }