luci-app-attendedsysupgrade: support revision checks
authorPaul Spooren <[email protected]>
Sun, 29 Aug 2021 10:37:31 +0000 (00:37 -1000)
committerPaul Spooren <[email protected]>
Wed, 15 Sep 2021 21:27:49 +0000 (11:27 -1000)
commitf347db0698ee3d6d6494e023e629ca724a1d35de
tree94a3102f7949d47369d6a3e51f98b0e07c95d053
parentaae1d349ae5654d52beb8e16ea8a486d3a6e5e19
luci-app-attendedsysupgrade: support revision checks

SNAPSHOTS are not real releases and therefore the app always offers an
upgrade, even if running the latest build. To prevent that all SNAPSHOTS
now check for the running revision and if a newer one is available.

Also do a bunch of refactoring based on JavaScript I learned over the
last week.

Signed-off-by: Paul Spooren <[email protected]>
(cherry picked from commit f799d550b6389baee5b388eefe638ba9a690f4c5)
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js