From 54fbdcd1c075dca5b831745e5da679b946efe7cb Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Mon, 17 Apr 2023 09:09:13 +0200 Subject: [PATCH] ui: clone: validate name As reported in the community forum[0], as opposed to VM/LXC creation, there is no validation for the name in the clone dialog. Use the same validation as the guest creation wizards do to catch errors early, before sending the API request. [0]: https://forum.proxmox.com/threads/125883/#post-549304 Signed-off-by: Fiona Ebner --- www/manager6/window/Clone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/manager6/window/Clone.js b/www/manager6/window/Clone.js index e94cd92d..e4ea17ad 100644 --- a/www/manager6/window/Clone.js +++ b/www/manager6/window/Clone.js @@ -191,6 +191,7 @@ Ext.define('PVE.window.Clone', { { xtype: 'textfield', name: 'name', + vtype: 'DnsName', allowBlank: true, fieldLabel: me.guestType === 'lxc' ? gettext('Hostname') : gettext('Name'), },