[pve-devel] [PATCH widget-toolkit 2/5] vlan edit: Forbid blank vlan raw device

Dominic Jäger d.jaeger at proxmox.com
Mon Feb 8 13:41:34 CET 2021


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 at proxmox.com>
---
 src/node/NetworkEdit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/node/NetworkEdit.js b/src/node/NetworkEdit.js
index b2d1077..35edc31 100644
--- a/src/node/NetworkEdit.js
+++ b/src/node/NetworkEdit.js
@@ -128,6 +128,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
 		name: 'vlan-raw-device',
 		value: me.vlanrawdevicevalue,
 		disabled: me.disablevlanrawdevice,
+		allowBlank: false,
 	    });
 
 	    column2.push({
-- 
2.20.1





More information about the pve-devel mailing list