luci-base: ui.js: warn about connectivity loss on changing iface settings
authorJo-Philipp Wich <jo@mein.io>
Fri, 6 May 2022 11:39:36 +0000 (13:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 11:35:18 +0000 (13:35 +0200)
commit733ee9a7b6312e9b5fe2a4aa8107baf5379602ab
treeb82f5d8110bf23abcaad0a877a42063195f0a193
parent56fab648caa78422aac47ab8cec168e8a0999316
luci-base: ui.js: warn about connectivity loss on changing iface settings

If specific settings such as the protocol, IP address or netmask of an
interface the user is connected to are changed, the apply/rollback
mechanism might interfere. Display an additional warning dialog in this
case, instructing the user to manually reconnect and offering to continue
with a less safe unchecked apply mechanism.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js