]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
vlan edit: Forbid blank vlan raw device
authorDominic Jäger <d.jaeger@proxmox.com>
Mon, 8 Feb 2021 12:41:34 +0000 (13:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 9 Feb 2021 12:45:11 +0000 (13:45 +0100)
Users certainly have to insert a vlan raw device when the textfield is enabled.
Currently, they only see `invalid network interface name "` when submitting.
Forbidding the blank field shows the problem earlier.

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

index b2d107761563d0f65d7fd09e8d7040a52d9c1ead..35edc31424d25de594760785de4d4536962594e2 100644 (file)
@@ -128,6 +128,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
                name: 'vlan-raw-device',
                value: me.vlanrawdevicevalue,
                disabled: me.disablevlanrawdevice,
+               allowBlank: false,
            });
 
            column2.push({