]> git.proxmox.com Git - pve-manager.git/commitdiff
follow bulk-migrate gui adaptions
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Nov 2019 15:24:47 +0000 (16:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 30 Nov 2019 15:24:53 +0000 (16:24 +0100)
show both, checkbox and hint in one row, there more horizontal space
than vertical.

s/Warning/Note/

default to on for convenience

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/window/BulkAction.js

index 0429d96d614d840fcf2a95ffb31f27d8cddca8ba..0f281ba2ac2c45aeb302ecb400254512c256e7b3 100644 (file)
@@ -48,15 +48,12 @@ Ext.define('PVE.window.BulkAction', {
        if (!me.nodename) {
            throw "no node name specified";
        }
-
        if (!me.action) {
            throw "no action specified";
        }
-
        if (!me.btnText) {
            throw "no button text specified";
        }
-
        if (!me.title) {
            throw "no title specified";
        }
@@ -85,24 +82,27 @@ Ext.define('PVE.window.BulkAction', {
                    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);
+                   xtype: 'fieldcontainer',
+                   fieldLabel: gettext('Allow local disk migration'),
+                   layout: 'hbox',
+                   items: [{
+                       xtype: 'proxmoxcheckbox',
+                       name: 'with-local-disks',
+                       checked: true,
+                       uncheckedValue: 0,
+                       listeners: {
+                           change: (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: 'localdiskwarning',
+                       xtype: 'displayfield',
+                       flex: 1,
+                       padding: '0 0 0 10',
+                       userCls: 'pmx-hint',
+                       value: 'Note: Migration with local disks might take long.',
+                   }],
                },
                {
                    itemId: 'lxcwarning',