From 85b6c4ead47c4ebca1b03ab301fb4ace5ac9e812 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 2 Jul 2021 09:31:50 +0200 Subject: [PATCH] ui: login: fix another bogus gettext usage Signed-off-by: Thomas Lamprecht --- www/LoginView.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/LoginView.js b/www/LoginView.js index ae796795..2ba07277 100644 --- a/www/LoginView.js +++ b/www/LoginView.js @@ -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
Error: ' + response.htmlStatus), - function() { - window.location = redirect_url; - }, + gettext('OpenID login failed, please try again') + `
${error}`, + () => { window.location = redirectURL; }, ); }, success: function(response, options) {