summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources/view/status
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-02-07 10:01:25 +0100
committerJo-Philipp Wich <jo@mein.io>2023-02-07 10:09:42 +0100
commit276046c8e973ab0a02a4a17fdc5aea65786a0058 (patch)
treec51aacc2e9deb68b9db3e06fe533110c07a5e254 /modules/luci-mod-status/htdocs/luci-static/resources/view/status
parentf416c27b90a88000c0d0786decc514c044d2e3d1 (diff)
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>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status')
0 files changed, 0 insertions, 0 deletions