Skip to content

Commit a52f27b

Browse files
committed
minors
1 parent e604ddb commit a52f27b

File tree

1 file changed

+5
-6
lines changed
  • services/static-webserver/client/source/class/osparc/desktop/account

1 file changed

+5
-6
lines changed

services/static-webserver/client/source/class/osparc/desktop/account/ProfilePage.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,10 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
264264
const patchData = {
265265
"privacy": {}
266266
};
267-
if (this.__userProfileData["privacy"]["hideFullname"] !== model.getHideFullname()) {
267+
if (this.__userPrivacyData["hideFullname"] !== model.getHideFullname()) {
268268
patchData["privacy"]["hideFullname"] = model.getHideFullname();
269269
}
270-
if (this.__userProfileData["privacy"]["hideEmail"] !== model.getHideEmail()) {
270+
if (this.__userPrivacyData["hideEmail"] !== model.getHideEmail()) {
271271
patchData["privacy"]["hideEmail"] = model.getHideEmail();
272272
}
273273

@@ -277,14 +277,13 @@ qx.Class.define("osparc.desktop.account.ProfilePage", {
277277
};
278278
osparc.data.Resources.fetch("profile", "patch", params)
279279
.then(() => {
280-
this.__setDataToPrivacy(Object.assign(this.__userProfileData, params.data));
281-
// osparc.auth.Manager.getInstance().updateProfile(this.__userProfileData);
282-
const msg = this.tr("Profile updated");
280+
this.__setDataToPrivacy(Object.assign(this.__userPrivacyData, params.data));
281+
const msg = this.tr("Privacy updated");
283282
osparc.FlashMessenger.getInstance().logAs(msg, "INFO");
284283
})
285284
.catch(err => {
286285
this.__resetPrivacyData();
287-
const msg = err.message || this.tr("Failed to update profile");
286+
const msg = err.message || this.tr("Failed to update privacy");
288287
osparc.FlashMessenger.getInstance().logAs(msg, "ERROR");
289288
console.error(err);
290289
});

0 commit comments

Comments
 (0)