so the current disk locations can be preserved even if
there are multiple local disks. And users don't have to
manually select the current storage if there is only one
local disk.

Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---

Not too happy about the "use current layout" text. Maybe
somebody has a better idea.

 www/manager6/window/Migrate.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index 20e057ad..8f3cf1c2 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -119,7 +119,7 @@ Ext.define('PVE.window.Migrate', {
            if (vm.get('migration.with-local-disks')) {
                params['with-local-disks'] = 1;
            }
-           if (vm.get('migration.with-local-disks')) {
+           if (vm.get('migration.with-local-disks') && values.targetstorage) {
                params.targetstorage = values.targetstorage;
            }
 
@@ -343,6 +343,9 @@ Ext.define('PVE.window.Migrate', {
                            name: 'targetstorage',
                            fieldLabel: gettext('Target storage'),
                            storageContent: 'images',
+                           allowBlank: true,
+                           autoSelect: false,
+                           emptyText: 'use current layout',
                            bind: {
                                hidden: '{!migration.with-local-disks}',
                            }
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to