From 79f2c7dd3d67c0bbae41c6c99ac8b05f479fe953 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Thu, 27 May 2021 14:11:16 -0700
Subject: [PATCH] IO-1086 confirmation on profile update.
---
bodyshop_translations.babel | 26 +++++++++++++++++++++++
client/src/redux/user/user.sagas.js | 6 ++++++
client/src/translations/en_us/common.json | 3 +++
client/src/translations/es/common.json | 3 +++
client/src/translations/fr/common.json | 3 +++
5 files changed, 41 insertions(+)
diff --git a/bodyshop_translations.babel b/bodyshop_translations.babel
index a6258dd82..abc4f8118 100644
--- a/bodyshop_translations.babel
+++ b/bodyshop_translations.babel
@@ -30465,6 +30465,32 @@
+
+ successes
+
+
+ updated
+ false
+
+
+
+
+
+ en-US
+ false
+
+
+ es-MX
+ false
+
+
+ fr-CA
+ false
+
+
+
+
+
diff --git a/client/src/redux/user/user.sagas.js b/client/src/redux/user/user.sagas.js
index a70964387..cbeba03af 100644
--- a/client/src/redux/user/user.sagas.js
+++ b/client/src/redux/user/user.sagas.js
@@ -1,4 +1,6 @@
import Fingerprint2 from "@fingerprintjs/fingerprintjs";
+import { notification } from "antd";
+import i18next from "i18next";
import LogRocket from "logrocket";
import { all, call, delay, put, select, takeLatest } from "redux-saga/effects";
import {
@@ -100,6 +102,10 @@ export function* updateUserDetails(userDetails) {
try {
yield updateCurrentUser(userDetails.payload);
yield put(updateUserDetailsSuccess(userDetails.payload));
+ notification.open({
+ type: "success",
+ message: i18next.t("profile.successes.updated"),
+ });
} catch (error) {
//yield put(signOutFailure(error.message));
}
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index 7c5106e75..164bdd128 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -1825,6 +1825,9 @@
},
"labels": {
"activeshop": "Active Shop"
+ },
+ "successes": {
+ "updated": "Profile updated successfully."
}
},
"reportcenter": {
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index d4b8d2c1e..4fae2a134 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -1825,6 +1825,9 @@
},
"labels": {
"activeshop": ""
+ },
+ "successes": {
+ "updated": ""
}
},
"reportcenter": {
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 6f7f00692..63fde29b6 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -1825,6 +1825,9 @@
},
"labels": {
"activeshop": ""
+ },
+ "successes": {
+ "updated": ""
}
},
"reportcenter": {