]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
combogrid: add handling for historic set values currently not available
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Jul 2019 13:55:37 +0000 (15:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 18 Jul 2019 13:55:38 +0000 (15:55 +0200)
commit1ccb53ecdbd69a0e4c57a6d861da1918d3625e08
treecf0aad3186bb39d90a1bf3b89ffbf1784f5af291
parentf59a7b2350335889dc081e508c3aaee680e0811b
combogrid: add handling for historic set values currently not available

We can often run into situations where a value set in the past is not
valid anymore. An example could be a deleted network bridge, e.g., we
set the vNIC of a VM to 'vmbr1' but then we decide to obsolete that
and delete that one, one would now expect that the field gets marked
as invalid when editing the VM's vNIC, so add that behavior.

As sometimes this can be valid and wanted behavior (e.g., usb
passthrough, which is hot-pluggable), also add a switch do restore
the old behavior.

Note that the empty value is not handled by this change, we let the
existing "allowBlank" config switch handle that one.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
form/ComboGrid.js