luci-app-attendedsysupgrade: rework logic in check-for-new-firmware
authorEric Fahlgren <[email protected]>
Sat, 15 Nov 2025 22:08:11 +0000 (14:08 -0800)
committerPaul Donald <[email protected]>
Sun, 16 Nov 2025 03:13:29 +0000 (04:13 +0100)
commit3034f05d6503406d714b1b50dba5d4c157720dd3
tree94d50b7ec1990256b79b69f85e695b614df3220a
parent67cca0ebf699161de0edea10ae4d9676dd7fdfc6
luci-app-attendedsysupgrade: rework logic in check-for-new-firmware

Fix a bug in the check for new firmware feature, where it would
indicate that an older version should be installed.

While we're here, simplify the top-level logic to make it more
readable and maintainable, and clean up the table generator.

Signed-off-by: Eric Fahlgren <[email protected]>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/status/include/11_upgrades.js