luci-mod-network: properly reflect config state in sysfs tristates
authorJo-Philipp Wich <jo@mein.io>
Fri, 8 Dec 2023 11:38:51 +0000 (12:38 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 8 Dec 2023 11:38:51 +0000 (12:38 +0100)
commit4b6b00927b4a1076ed8bf23f3a0327a335ebece5
tree1c9a8ffa9e16fca2d36fa1911e8777d2870ec9a4
parent6bdc5771095627889d43a1cbdc4fc45e3b0e5537
luci-mod-network: properly reflect config state in sysfs tristates

When a boolean sysfs option is forcibly set to `0` or `1` in uci, then make
sure to properly reflect that choice state when rendering the widget.

Right now the dropdown incorrectly reverted to "automatic" after saving but
not applying the changes.

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