luci-mod-status: prevent trace-back loading wireless on non-WiFi devices
authorPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 00:13:26 +0000 (00:13 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 16:23:35 +0000 (16:23 +0000)
commit06461e07b53eafb369b561ed46216b3628e86335
tree7ff143d735b80a82d38a45809c1d33076da72a0d
parent41cbd31c90f47dd81613b0af3190cc8d2afeb562
luci-mod-status: prevent trace-back loading wireless on non-WiFi devices

Manifests in the console as:

RPCError: RPC call to uci/get failed with ubus code 4: Resource not found

The lazy-loading is harmless and has been that way for years, but the
presence of the trace-back clouds other problems. This should keep the
console cleaner; it conditionally attempts to load wireless when a more
fundamental check for it passes.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js