luci-app-ocserv: fix status page and users view bugs
authorJoshua Klinesmith <redacted>
Mon, 30 Mar 2026 22:09:44 +0000 (18:09 -0400)
committerPaul Donald <redacted>
Mon, 30 Mar 2026 22:12:31 +0000 (00:12 +0200)
commita5bedae6482709b3be18e8006a6ceb69d7c709f2
tree81779ff02607c530f29b3d43fd2deb5db2693d7b
parent0529dca7a263a9ce713dd043d87467d16544e204
luci-app-ocserv: fix status page and users view bugs

- Fix duplicate "Active OpenConnect Users" header on status page by
  returning the table directly like other status widgets
- Fix colspan mismatch in users table (13 columns, was 10)
- Fix undefined tx/rx in user list by mapping occtl JSON fields
- Switch status widget to occtl --json and add Tx/Rx columns

Fixes: #8439
Signed-off-by: Joshua Klinesmith <redacted>
Co-Authored-By: Claude Opus 4.6 (1M context) <redacted>
applications/luci-app-ocserv/htdocs/luci-static/resources/view/ocserv/users.js
applications/luci-app-ocserv/htdocs/luci-static/resources/view/status/include/80_ocserv.js
git clone https://git.99rst.org/PROJECT