From: Paul Donald Date: Wed, 23 Apr 2025 22:13:26 +0000 (+0200) Subject: luci-mod-network: widgets shall show devices that are online as online X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f17ae7fd96f285aa564579f597f51e2679b27fd4;p=openwrt-luci.git luci-mod-network: widgets shall show devices that are online as online follow-up to 832680bb84d18132d04f424b7d70ce18d62e1150 Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js index 221af74cb0..b2c54e6224 100644 --- a/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js +++ b/modules/luci-base/htdocs/luci-static/resources/tools/widgets.js @@ -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')) })); }