mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 23:46:58 +00:00
follouwp: reduce duplicate code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
abffa1a6dc
commit
e7c0216d2e
@ -293,15 +293,11 @@ Ext.define('PVE.storage.Upload', {
|
||||
if (xhr.responseText !== "") {
|
||||
var result = Ext.decode(xhr.responseText);
|
||||
result.message = msg;
|
||||
var htmlStatus = Proxmox.Utils.extractRequestError(result, true);
|
||||
Ext.Msg.alert(gettext('Error'), htmlStatus, function(btn) {
|
||||
me.close();
|
||||
});
|
||||
} else {
|
||||
Ext.Msg.alert(gettext('Error'), msg, function(btn) {
|
||||
me.close();
|
||||
});
|
||||
msg = Proxmox.Utils.extractRequestError(result, true);
|
||||
}
|
||||
Ext.Msg.alert(gettext('Error'), msg, function(btn) {
|
||||
me.close();
|
||||
});
|
||||
}
|
||||
}, false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user