[pve-devel] [PATCH manager 2/6] gui/cluster: validate cluster name length on create

Stefan Reiter s.reiter at proxmox.com
Wed Jan 29 11:27:19 CET 2020


API limits this to 15, validate in GUI as well for instant user
feedback.

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 www/manager6/dc/ClusterEdit.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/dc/ClusterEdit.js b/www/manager6/dc/ClusterEdit.js
index a8c021d2..0af858a5 100644
--- a/www/manager6/dc/ClusterEdit.js
+++ b/www/manager6/dc/ClusterEdit.js
@@ -21,6 +21,7 @@ Ext.define('PVE.ClusterCreateWindow', {
 	    xtype: 'textfield',
 	    fieldLabel: gettext('Cluster Name'),
 	    allowBlank: false,
+	    maxLength: 15,
 	    name: 'clustername'
 	},
 	{
-- 
2.20.1





More information about the pve-devel mailing list