Add digest to prevent concurrent changes
This commit is contained in:
parent
6a56c350de
commit
a263b7e338
@ -71,6 +71,10 @@ Ext.define('PVE.window.Edit', {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (me.digest) {
|
||||||
|
values.digest = me.digest;
|
||||||
|
}
|
||||||
|
|
||||||
PVE.Utils.API2Request({
|
PVE.Utils.API2Request({
|
||||||
url: me.url,
|
url: me.url,
|
||||||
waitMsgTarget: me,
|
waitMsgTarget: me,
|
||||||
@ -105,6 +109,7 @@ Ext.define('PVE.window.Edit', {
|
|||||||
method: 'GET',
|
method: 'GET',
|
||||||
success: function(response, opts) {
|
success: function(response, opts) {
|
||||||
form.clearInvalid();
|
form.clearInvalid();
|
||||||
|
me.digest = response.result.data.digest;
|
||||||
if (successFn) {
|
if (successFn) {
|
||||||
successFn(response, opts);
|
successFn(response, opts);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user