luci-base: widgets shall show devices that are online as online
authorPaul Donald <[email protected]>
Wed, 23 Apr 2025 12:03:28 +0000 (14:03 +0200)
committerPaul Donald <[email protected]>
Wed, 23 Apr 2025 12:03:28 +0000 (14:03 +0200)
commit832680bb84d18132d04f424b7d70ce18d62e1150
tree6b4a1db3b4317de99d04337f7003dc8e0937cbac
parentd40c03ad8dfdc22259fbafaeec70a8f60e324e11
luci-base: widgets shall show devices that are online as online

Tunnel devices which are up, show as down, since they don't 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 get parent device status.

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