Skip to content
Commit 25e0b966 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: form.js: add support for dynamic default values



Many uci options have different implicit defaults, depending on the
values of other related options. A prominent example is the wireless
ieee80211w option which defaults to 2, 1 or 0 depending on whether
the encryption is set to wpa3-sae, wpa2/wpa2 mixed or any other mode
respectively.

Add the ability to specify a dictionary of default values and their
corresponding dependencies in order to be able to express such
configurations.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 4dfa657f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment