ui: login: fix another bogus gettext usage

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 09:31:50 +02:00
parent a190979c04
commit 85b6c4ead4
1 changed files with 3 additions and 4 deletions

View File

@ -184,12 +184,11 @@ Ext.define('PBS.LoginView', {
method: 'POST',
failure: function(response) {
loginForm.unmask();
let error = response.htmlStatus;
Ext.MessageBox.alert(
gettext('Error'),
gettext('Login failed. Please try again<br>Error: ' + response.htmlStatus),
function() {
window.location = redirect_url;
},
gettext('OpenID login failed, please try again') + `<br>${error}`,
() => { window.location = redirectURL; },
);
},
success: function(response, options) {