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:25:36 +0000 (14:25 +0200)
commit326b6247908669184973555514add6b7eaf66646
treec0b3d803ed8bd26003e130bcfad8e155de64d722
parent1b4aa1d8720f93ee437602511d4322137bd3bdcd
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]>
(cherry picked from commit 832680bb84d18132d04f424b7d70ce18d62e1150)
modules/luci-base/htdocs/luci-static/resources/tools/widgets.js