[pve-devel] [PATCH manager 3/3] ui: add checkbox to bulk migrate window to allow migration with local disks

Tim Marx t.marx at proxmox.com
Fri Nov 29 15:10:16 CET 2019


Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 www/manager6/window/BulkAction.js | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/www/manager6/window/BulkAction.js b/www/manager6/window/BulkAction.js
index ba27eef1..0429d96d 100644
--- a/www/manager6/window/BulkAction.js
+++ b/www/manager6/window/BulkAction.js
@@ -18,6 +18,7 @@ Ext.define('PVE.window.BulkAction', {
 
     submit: function(params) {
 	var me = this;
+
 	Proxmox.Utils.API2Request({
 	    params: params,
 	    url: '/nodes/' + me.nodename + '/' + me.action,
@@ -83,6 +84,26 @@ Ext.define('PVE.window.BulkAction', {
 		    fieldLabel: gettext('Parallel jobs'),
 		    allowBlank: false
 		},
+		{
+		    xtype: 'proxmoxcheckbox',
+		    name: 'with-local-disks',
+		    checked: false,
+		    uncheckedValue: 0,
+		    fieldLabel: gettext('Migrate VMs with local disks'),
+		    listeners: {
+			change: function(cb, val) {
+			    me.down('#localdiskwarning').setVisible(val);
+			}
+		    }
+
+		},
+		{
+		    itemId: 'localdiskwarning',
+		    xtype: 'displayfield',
+		    userCls: 'pmx-hint',
+		    value: 'Warning: Migration with local disks might take long.',
+		    hidden: true
+		},
 		{
 		    itemId: 'lxcwarning',
 		    xtype: 'displayfield',
-- 
2.20.1




More information about the pve-devel mailing list