From 3d62533052516cc52a8a56c61b35243dce8dc880 Mon Sep 17 00:00:00 2001 From: Tim Marx Date: Fri, 29 Nov 2019 15:10:16 +0100 Subject: [PATCH] ui: add checkbox to bulk migrate window to allow migration with local disks Signed-off-by: Tim Marx --- 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.39.5