luci-mod-status: 29_ports.js: handle devices without speed indication
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 Oct 2023 22:53:25 +0000 (23:53 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 31 Oct 2023 22:54:55 +0000 (23:54 +0100)
commit0bf5e5ca06a53140667f12fd728257157a3d945e
treed272d3bbd9e56aec82a0c71411a96c186e345c71
parentbe340ed9c4bf7be3052c2554bfc0efaeabab08d7
luci-mod-status: 29_ports.js: handle devices without speed indication

Use carrier state to distinguish connected/no link states and simply
print "Connected" if no speed indication is available.

Fixes: #6663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js