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', method: 'POST',
failure: function(response) { failure: function(response) {
loginForm.unmask(); loginForm.unmask();
let error = response.htmlStatus;
Ext.MessageBox.alert( Ext.MessageBox.alert(
gettext('Error'), gettext('Error'),
gettext('Login failed. Please try again<br>Error: ' + response.htmlStatus), gettext('OpenID login failed, please try again') + `<br>${error}`,
function() { () => { window.location = redirectURL; },
window.location = redirect_url;
},
); );
}, },
success: function(response, options) { success: function(response, options) {