mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 15:58:20 +00:00
mask whole window with waitMsgTarget
Else the buttons are still functional, and the user can trigger additional command (i.e. several restore processes).
This commit is contained in:
parent
42476072e5
commit
2c5351706b
@ -360,7 +360,7 @@ Ext.define('PVE.Utils', { statics: {
|
|||||||
var target = newopts.waitMsgTarget;
|
var target = newopts.waitMsgTarget;
|
||||||
if (target) {
|
if (target) {
|
||||||
// Note: ExtJS bug - this does not work when component is not rendered
|
// Note: ExtJS bug - this does not work when component is not rendered
|
||||||
target.setLoading(newopts.waitMsg, true);
|
target.setLoading(newopts.waitMsg);
|
||||||
}
|
}
|
||||||
Ext.Ajax.request(newopts);
|
Ext.Ajax.request(newopts);
|
||||||
},
|
},
|
||||||
|
@ -58,6 +58,7 @@ Ext.define('PVE.window.Restore', {
|
|||||||
url: url,
|
url: url,
|
||||||
params: params,
|
params: params,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
waitMsgTarget: me,
|
||||||
failure: function (response, opts) {
|
failure: function (response, opts) {
|
||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
Ext.Msg.alert('Error', response.htmlStatus);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user