mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 12:19:11 +00:00
ui: add checkbox to bulk migrate window to allow migration with local disks
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
d8d1727191
commit
3d62533052
@ -18,6 +18,7 @@ Ext.define('PVE.window.BulkAction', {
|
|||||||
|
|
||||||
submit: function(params) {
|
submit: function(params) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
Proxmox.Utils.API2Request({
|
Proxmox.Utils.API2Request({
|
||||||
params: params,
|
params: params,
|
||||||
url: '/nodes/' + me.nodename + '/' + me.action,
|
url: '/nodes/' + me.nodename + '/' + me.action,
|
||||||
@ -83,6 +84,26 @@ Ext.define('PVE.window.BulkAction', {
|
|||||||
fieldLabel: gettext('Parallel jobs'),
|
fieldLabel: gettext('Parallel jobs'),
|
||||||
allowBlank: false
|
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',
|
itemId: 'lxcwarning',
|
||||||
xtype: 'displayfield',
|
xtype: 'displayfield',
|
||||||
|
Loading…
Reference in New Issue
Block a user