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:46 +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 0e72d5103467be9537f0914c0fad10e7e9b28413..b5218cf000a93a6e8d1fbf79e26bacc848c5f324 100644 (file)
@@ -357,7 +357,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'))
                        }));
                }