mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 10:28:14 +00:00
gui: dc/TFAEdit: show an error message if tfa api call fails
setting the loadmask did not really work, so show a messagebox instead and close the window Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
bfdfea5074
commit
49b54908ff
@ -205,7 +205,8 @@ Ext.define('PVE.window.TFAEdit', {
|
|||||||
me.afterLoading(data.realm, data.user);
|
me.afterLoading(data.realm, data.user);
|
||||||
},
|
},
|
||||||
failure: function(response, opts) {
|
failure: function(response, opts) {
|
||||||
Proxmox.Utils.setErrorMask(loadMaskContainer, response.htmlStatus);
|
me.close();
|
||||||
|
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user