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:
Dominik Csapak 2020-02-11 10:01:31 +01:00 committed by Thomas Lamprecht
parent bfdfea5074
commit 49b54908ff

View File

@ -205,7 +205,8 @@ Ext.define('PVE.window.TFAEdit', {
me.afterLoading(data.realm, data.user);
},
failure: function(response, opts) {
Proxmox.Utils.setErrorMask(loadMaskContainer, response.htmlStatus);
me.close();
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
}
});