From 84467df09fa8aa43b28e3a580a5eecddd226d026 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 4 Feb 2024 00:24:17 +0100 Subject: [PATCH] feedback for request export --- public/locales/de/translation.json | 14 ++++---------- public/locales/en/translation.json | 14 ++++---------- src/Pages/UserProfile/index.js | 9 +++++++++ 3 files changed, 17 insertions(+), 20 deletions(-) diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 662d050..5518dc6 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -330,9 +330,9 @@ "title": "Konto export anfordern", "info": "Dies kann einige Zeit in Anspruch nehmen. Wir senden Ihnen eine E-Mail mit dem Download-Link, sobald der Export fertig ist.", "request": { - "400": { - "title": "Passwort falsch", - "description": "Bitte überprüfen Sie Ihr Passwort und versuchen Sie es erneut." + "200": { + "title": "Export angefordert", + "description": "Wir haben Ihre Anfrage erhalten und senden Ihnen eine E-Mail, sobald der Export fertig ist" } } } @@ -353,13 +353,7 @@ }, "improveLabel": "Wie können wir das Produkt verbessern?", "improveRequired": "Bitte geben Sie Ihr Feedback ein", - "improveMinLengthRequired": "Bitte geben Sie mindestens {{minLength}} Zeichen ein", - "request": { - "400": { - "title": "Passwort falsch", - "description": "Bitte überprüfen Sie Ihr Passwort und versuchen Sie es erneut." - } - } + "improveMinLengthRequired": "Bitte geben Sie mindestens {{minLength}} Zeichen ein" } } } diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 6ce468f..0127296 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -339,9 +339,9 @@ "title": "Request account export", "info": "Export your account and all data created during the use of the dashboard.", "request": { - "400": { - "title": "Password incorrect", - "description": "Please check your password and try again." + "200": { + "title": "Request sent", + "description": "We have received your request and will send you an email with the download link as soon as possible." } } } @@ -362,13 +362,7 @@ }, "improveLabel": "How can we improve the product?", "improveRequired": "Please enter your feedback", - "improveMinLengthRequired": "Please enter at least {{minLength}} characters", - "request": { - "400": { - "title": "Password incorrect", - "description": "Please check your password and try again." - } - } + "improveMinLengthRequired": "Please enter at least {{minLength}} characters" } } } diff --git a/src/Pages/UserProfile/index.js b/src/Pages/UserProfile/index.js index 8c57b38..0d98819 100644 --- a/src/Pages/UserProfile/index.js +++ b/src/Pages/UserProfile/index.js @@ -677,6 +677,15 @@ function YourAccountExportDataCard({ notificationApi }) { .then(() => { setIsRequesting(false); setIsModalOpen(false); + + notificationApi["info"]({ + message: t( + "userProfile.accountExport.modal.request.200.title" + ), + description: t( + "userProfile.accountExport.modal.request.200.description" + ), + }); }) .catch((errStatus) => { setIsRequesting(false);