mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-14 09:38:03 +00:00
ui: backup restore: add start-after-restore checkbox
Restore may be a long running operation, as it goes over the common create API path we can reuse the "start after create" for a "start after restore" for free. Add this as hbox layout, as else it looks like a lot of wasted space in the right side of the window, especially when restoring a CT backup (were the "unprivileged" checkbox is additionally there). Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a331258a87
commit
24c55f4143
@ -62,16 +62,29 @@ Ext.define('PVE.window.Restore', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'proxmoxcheckbox',
|
xtype: 'fieldcontainer',
|
||||||
name: 'unique',
|
layout: 'hbox',
|
||||||
fieldLabel: gettext('Unique'),
|
items: [{
|
||||||
hidden: !!me.vmid,
|
xtype: 'proxmoxcheckbox',
|
||||||
autoEl: {
|
name: 'unique',
|
||||||
tag: 'div',
|
fieldLabel: gettext('Unique'),
|
||||||
'data-qtip': gettext('Autogenerate unique properties, e.g., MAC addresses')
|
hidden: !!me.vmid,
|
||||||
|
flex: 1,
|
||||||
|
autoEl: {
|
||||||
|
tag: 'div',
|
||||||
|
'data-qtip': gettext('Autogenerate unique properties, e.g., MAC addresses')
|
||||||
|
},
|
||||||
|
checked: false
|
||||||
},
|
},
|
||||||
checked: false
|
{
|
||||||
}
|
xtype: 'proxmoxcheckbox',
|
||||||
|
name: 'start',
|
||||||
|
flex: 1,
|
||||||
|
fieldLabel: gettext('Start after restore'),
|
||||||
|
labelWidth: 105,
|
||||||
|
checked: false
|
||||||
|
}],
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
/*jslint confusion: true*/
|
/*jslint confusion: true*/
|
||||||
@ -130,6 +143,7 @@ Ext.define('PVE.window.Restore', {
|
|||||||
force: me.vmid ? 1 : 0
|
force: me.vmid ? 1 : 0
|
||||||
};
|
};
|
||||||
if (values.unique) { params.unique = 1; }
|
if (values.unique) { params.unique = 1; }
|
||||||
|
if (values.start) { params.start = 1; }
|
||||||
|
|
||||||
if (values.bwlimit !== undefined) {
|
if (values.bwlimit !== undefined) {
|
||||||
params.bwlimit = values.bwlimit * 1024;
|
params.bwlimit = values.bwlimit * 1024;
|
||||||
|
Loading…
Reference in New Issue
Block a user