From 7cfd61ecf2321d96f91d973cda022c17c635a21b Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Fri, 17 Jan 2020 18:28:44 +0100 Subject: [PATCH] Error page added --- webapp/layouts/error.vue | 12 ++++++++++++ webapp/locales/de.json | 4 ++++ webapp/locales/en.json | 4 ++++ webapp/pages/profile/_id.vue | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 webapp/layouts/error.vue diff --git a/webapp/layouts/error.vue b/webapp/layouts/error.vue new file mode 100644 index 000000000..d11755ad4 --- /dev/null +++ b/webapp/layouts/error.vue @@ -0,0 +1,12 @@ + + + diff --git a/webapp/locales/de.json b/webapp/locales/de.json index d52a9817c..a3135c011 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -798,5 +798,9 @@ "donations-for": "Spenden für", "donate-now": "Jetzt spenden", "amount-of-total": "{amount} von {total} € erreicht" + }, + "error-pages" : { + "user-not-found": "Dieser Benutzer konnte nicht gefunden werden", + "back-to-index": "Zurück zur Startseite" } } diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 1906a5f6f..f8dea3914 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -798,6 +798,10 @@ "title": "In addition, we regularly hold events where you can also share your impressions and ask questions. You can find a current overview here:", "description": " https://human-connection.org/events/ " } + }, + "error-pages" : { + "user-not-found": "This user could not be found", + "back-to-index": "Back to index page" } } diff --git a/webapp/pages/profile/_id.vue b/webapp/pages/profile/_id.vue index 992e5efce..6b57e3b2d 100644 --- a/webapp/pages/profile/_id.vue +++ b/webapp/pages/profile/_id.vue @@ -23,7 +23,7 @@ const options = { } } `, - message: 'This user could not be found', + message: 'error-pages.user-not-found', path: 'profile', } const persistentLinks = PersistentLinks(options)