luci-mod-network: widgets shall show devices that are online as online
authorPaul Donald <[email protected]>
Wed, 23 Apr 2025 12:03:39 +0000 (14:03 +0200)
committerPaul Donald <[email protected]>
Wed, 23 Apr 2025 12:03:39 +0000 (14:03 +0200)
commita288354e78d4dd5872dea52bcebf7d1f91fad3b1
tree034680d737272c9230038939a646b171ce9f4217
parent832680bb84d18132d04f424b7d70ce18d62e1150
luci-mod-network: widgets shall show devices that are online as online

Tunnel devices which are up, show as down, since the config being
enumerated does not have access to any device status. The 'device' being
enumerated is e.g. 'wireguard_wg0', a configuration for a tunnel
interface, whose parent is an 'ethernet' type.

That's a bug for another day. So they shall use parent device status.

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js