]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: backup restore: validate name
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 17 Apr 2023 07:09:14 +0000 (09:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 24 Apr 2023 10:09:52 +0000 (12:09 +0200)
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@proxmox.com>
www/manager6/window/Restore.js

index 7d9d57bfb206f7fc77ce3b161f3eec633ff9c3ae..36aecc39230b10c4a3b5fc78005a7ce7dca52440 100644 (file)
@@ -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,
                    }, {