mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 14:32:37 +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;
|
||||
if (target) {
|
||||
// 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);
|
||||
},
|
||||
|
@ -58,6 +58,7 @@ Ext.define('PVE.window.Restore', {
|
||||
url: url,
|
||||
params: params,
|
||||
method: 'POST',
|
||||
waitMsgTarget: me,
|
||||
failure: function (response, opts) {
|
||||
Ext.Msg.alert('Error', response.htmlStatus);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user