[pve-devel] [PATCH manager 2/2] ui: backup restore: validate name
Fiona Ebner
f.ebner at proxmox.com
Mon Apr 17 09:09:14 CEST 2023
Use the same validation as the guest creation wizards do to catch
errors early, before sending the API request.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
www/manager6/window/Restore.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
index 7d9d57bf..36aecc39 100644
--- a/www/manager6/window/Restore.js
+++ b/www/manager6/window/Restore.js
@@ -315,6 +315,7 @@ Ext.define('PVE.window.Restore', {
xtype: 'textfield',
fieldLabel: me.vmtype === 'lxc' ? gettext('Hostname') : gettext('Name'),
name: 'name',
+ vtype: 'DnsName',
reference: 'nameField',
allowBlank: true,
}, {
--
2.30.2
More information about the pve-devel
mailing list