luci/modules
Jo-Philipp Wich 276046c8e9 luci-mod-network: handle dynamic device configuration defaults
Most uci network device configuration settings have no specific default
value which means that netifd will only alter the related sysfs parameters
if an explicit value is specified in uci. When omitted from the
configuration, the related sysfs setting is left untouched.

This behaviour collides with LuCI's approach of purging boolean options
from the configuration if they match their default value, leading to the
inability to disable or enable certain settings as described in #6219.

Solve this issue by replacing flag widgets with tri-state selects offering
an "automatic" (default) as well as an explicit "enabled" and "disabled"
choice. Also query sysfs on load and preset the automatic choice with an
indication whether the underlying sysfs settings is currently active or not.

Fixes: #6219
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2023-02-07 10:09:42 +01:00
..
luci-base luci-base: ui.js: modal dialog tweaks 2023-02-05 20:22:44 +01:00
luci-compat treewide: separate Lua runtime resources 2022-10-25 01:03:37 +02:00
luci-lua-runtime luci-base, luci-lua-runtime: adjust Lua template environment 2022-11-21 12:27:28 +01:00
luci-mod-admin-full luci-base: use cgi-io and rpcd-mod-file to handle file upload and browsing 2019-09-10 15:28:16 +02:00
luci-mod-admin-mini treewide: removed trailing whitespaces and extra newlines in 'modules' 2021-01-20 17:48:16 +02:00
luci-mod-battstatus Translated using Weblate (Hebrew) 2022-11-17 21:18:01 +02:00
luci-mod-dashboard Translated using Weblate (Russian) 2023-01-28 18:40:07 +02:00
luci-mod-dsl Merge pull request #6223 from janh/luci-mod-dsl-pilot-tones 2023-02-06 10:20:54 +01:00
luci-mod-network luci-mod-network: handle dynamic device configuration defaults 2023-02-07 10:09:42 +01:00
luci-mod-rpc treewide: removed trailing whitespaces and extra newlines in 'modules' 2021-01-20 17:48:16 +02:00
luci-mod-status luci-mod-status: extend DSL metrics 2023-02-03 19:31:21 +01:00
luci-mod-system luci-mod-system: fix potential stored XSS 2023-01-13 21:18:09 +01:00