]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
vlan edit: Fix automatic field disabling
authorDominic Jäger <d.jaeger@proxmox.com>
Mon, 8 Feb 2021 12:41:33 +0000 (13:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Feb 2021 12:45:11 +0000 (13:45 +0100)
commit7bff067a381b26a13c15baa0b0808df6056ddf7f
tree4f35f3905a632fbbf1c261a42d6a1b458503a9d1
parent98edb91665ac6da84f0b2f3ea1e8a95a9cc2d04d
vlan edit: Fix automatic field disabling

The regex are are created as literals (with // and not new RegExp).
Therefore
 - The old Vlan_match value with double \\  has matched e.g. vlan\ddd instead
   of e.g. vlan123 and
 - the old VlanInterface_match value with double \\ has matched e.g.
   \www\X\dddd instead of e.g. vmbr0.1234

This fixes automatically disabling the fields vlan-raw-device and vlan-id (VLAN
tag) in the VLAN edit window.

Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
src/Utils.js