luci-base: ui.js: gracefully handle failing confirm calls on rollback
authorJo-Philipp Wich <[email protected]>
Thu, 5 May 2022 21:31:21 +0000 (23:31 +0200)
committerJo-Philipp Wich <[email protected]>
Fri, 20 May 2022 18:24:27 +0000 (20:24 +0200)
commit514a459b9b8a78860eb7477724b51967889b9be7
treea1b7a8548aa127a3f27dd626ed41e70daf85d4b1
parente57aaf808d9192e5fe6d8f556194c7e6b71a995a
luci-base: ui.js: gracefully handle failing confirm calls on rollback

Do not abort the poll loop if some confirm request attempts fail, which
might happen when the device starts rolling back its configuration.

Before that fix, the rollback information dialog offering an unchecked
apply was not reliably presented in such situations.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit b6797821b86678d8dd604ce4805691784e6dc3ce)
modules/luci-base/htdocs/luci-static/resources/ui.js