]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: add checkbox to bulk migrate window to allow migration with local disks
authorTim Marx <t.marx@proxmox.com>
Fri, 29 Nov 2019 14:10:16 +0000 (15:10 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Nov 2019 14:25:18 +0000 (15:25 +0100)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
www/manager6/window/BulkAction.js

index ba27eef13a07ecd3f42a415db04cdd88f4491eec..0429d96d614d840fcf2a95ffb31f27d8cddca8ba 100644 (file)
@@ -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',