luci-base: form.js: implement AbstractValue.retain property
authorJo-Philipp Wich <jo@mein.io>
Thu, 9 Dec 2021 14:09:34 +0000 (15:09 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 9 Dec 2021 14:11:07 +0000 (15:11 +0100)
commitf5fbecf132b6c18141896b093935fb4c035ab33d
tree106d15f40cbc26d0d81ad4cd093dca4ba9de323c
parentac64c70436fff337ef7559b8ca7a2c54368200be
luci-base: form.js: implement AbstractValue.retain property

The new `retain` boolean property controls whether the related option value
is purged from the configuration when the dependencies of the option are
not satisifed.

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