Skip to content

Commit 4f8d367

Browse files
committed
Add success modal to login page for logout redirection
Adds a success modal that renders on the login page when redirecting after logging out. This modal is triggered by a URL query parameter. This commit also adds a new message contain the text to be rendered in the modal. All other languages besides English were machine translated.
1 parent 5869c36 commit 4f8d367

File tree

15 files changed

+19
-1
lines changed

15 files changed

+19
-1
lines changed

src/containers/DefaultHeaderProfileDropdown.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default {
6161
localStorage.removeItem('sessionInvalidate');
6262
// Removes the token from session storage and reload
6363
EventBus.$emit('authenticated', null);
64-
this.$router.replace({ name: 'Login' });
64+
this.$router.replace({ name: 'Login', query: { "fromLogout": "true" }});
6565
},
6666
canChangePassword: function () {
6767
return this.identityProvider == 'LOCAL';

src/i18n/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Mehr Optionen",
602602
"login_unauthorized": "ungültiger Benutzername oder Passwort",
603603
"logout": "Ausloggen",
604+
"logout_confirmation": "Sie haben sich erfolgreich abgemeldet.",
604605
"manufacturer": "Hersteller",
605606
"manufacturer_name": "Herstellername",
606607
"manufacturer_name_desc": "Die Organisation, die die im Projekt beschriebene Komponente hergestellt hat",

src/i18n/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "More options",
602602
"login_unauthorized": "Invalid username or password",
603603
"logout": "Logout",
604+
"logout_confirmation": "You have logged out successfully.",
604605
"manufacturer": "Manufacturer",
605606
"manufacturer_name": "Manufacturer name",
606607
"manufacturer_name_desc": "The organization that manufactured the component that the project describes",

src/i18n/locales/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Mas opciones",
602602
"login_unauthorized": "usuario o contraseña invalido",
603603
"logout": "Cerrar sesión",
604+
"logout_confirmation": "Has cerrado sesión exitosamente.",
604605
"manufacturer": "Fabricante",
605606
"manufacturer_name": "Nombre del Fabricante",
606607
"manufacturer_name_desc": "La organización que fabricó el componente que describe el proyecto.",

src/i18n/locales/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Plus d'options",
602602
"login_unauthorized": "Nom d'utilisateur ou mot de passe invalide",
603603
"logout": "Se déconnecter",
604+
"logout_confirmation": "Vous vous êtes déconnecté avec succès.",
604605
"manufacturer": "Fabricant",
605606
"manufacturer_name": "Nom du Fabricant",
606607
"manufacturer_name_desc": "L'organisation qui a fabriqué le composant décrit par le projet",

src/i18n/locales/hi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "अधिक विकल्प",
602602
"login_unauthorized": "अमान्य उपयोगकर्ता नाम या पासवर्ड",
603603
"logout": "लॉग आउट",
604+
"logout_confirmation": "आपने सफलतापूर्वक लॉग आउट कर लिया है।",
604605
"manufacturer": "उत्पादक",
605606
"manufacturer_name": "निर्माता नाम",
606607
"manufacturer_name_desc": "वह संगठन जिसने परियोजना में वर्णित घटक का निर्माण किया",

src/i18n/locales/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Più opzioni",
602602
"login_unauthorized": "Nome utente o password errati",
603603
"logout": "Disconnettersi",
604+
"logout_confirmation": "Hai effettuato correttamente il logout.",
604605
"manufacturer": "Produttore",
605606
"manufacturer_name": "Nome del produttore",
606607
"manufacturer_name_desc": "L'organizzazione che ha prodotto il componente descritto dal progetto",

src/i18n/locales/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "より多くのオプション",
602602
"login_unauthorized": "ユーザー名かパスワードが無効",
603603
"logout": "ログアウト",
604+
"logout_confirmation": "ログアウトに成功しました。",
604605
"manufacturer": "メーカー",
605606
"manufacturer_name": "メーカー名",
606607
"manufacturer_name_desc": "プロジェクトで説明されているコンポーネントを製造した組織",

src/i18n/locales/pl.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Więcej możliwości",
602602
"login_unauthorized": "Nieprawidłowa nazwa użytkownika lub hasło",
603603
"logout": "Wyloguj",
604+
"logout_confirmation": "Wylogowano pomyślnie.",
604605
"manufacturer": "Producent",
605606
"manufacturer_name": "Nazwa producenta",
606607
"manufacturer_name_desc": "Organizacja, która wyprodukowała komponent opisany w projekcie",

src/i18n/locales/pt-BR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@
601601
"login_more_options": "Mais opções",
602602
"login_unauthorized": "nome de usuário ou senha inválidos",
603603
"logout": "Sair",
604+
"logout_confirmation": "Você efetuou logout com sucesso.",
604605
"manufacturer": "Fabricante",
605606
"manufacturer_name": "Nome do fabricante",
606607
"manufacturer_name_desc": "A organização que fabricou o componente que o projeto descreve",

0 commit comments

Comments
 (0)