mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 15:21:28 +00:00
fix pending changes with boot order
this patch checks if only the bootdisk changed, using the multikey funcionality also use this in the revert button handler, to revert the bootdisk also Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4d638fcb01
commit
16c162ec73
@ -74,6 +74,7 @@ Ext.define('PVE.qemu.Options', {
|
|||||||
header: gettext('Boot order'),
|
header: gettext('Boot order'),
|
||||||
defaultValue: 'cdn',
|
defaultValue: 'cdn',
|
||||||
editor: caps.vms['VM.Config.Disk'] ? 'PVE.qemu.BootOrderEdit' : undefined,
|
editor: caps.vms['VM.Config.Disk'] ? 'PVE.qemu.BootOrderEdit' : undefined,
|
||||||
|
multiKey: ['boot', 'bootdisk'],
|
||||||
renderer: function(order, metaData, record, rowIndex, colIndex, store, pending) {
|
renderer: function(order, metaData, record, rowIndex, colIndex, store, pending) {
|
||||||
var i;
|
var i;
|
||||||
var text = '';
|
var text = '';
|
||||||
@ -336,12 +337,16 @@ Ext.define('PVE.qemu.Options', {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var rowdef = me.rows[rec.data.key] || {};
|
||||||
|
var keys = rowdef.multiKey || [ rec.data.key ];
|
||||||
|
var revert = keys.join(',');
|
||||||
|
|
||||||
PVE.Utils.API2Request({
|
PVE.Utils.API2Request({
|
||||||
url: '/api2/extjs/' + baseurl,
|
url: '/api2/extjs/' + baseurl,
|
||||||
waitMsgTarget: me,
|
waitMsgTarget: me,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
params: {
|
params: {
|
||||||
'revert': rec.data.key
|
'revert': revert
|
||||||
},
|
},
|
||||||
callback: function() {
|
callback: function() {
|
||||||
reload();
|
reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user