summaryrefslogtreecommitdiffstats
path: root/client/components/users
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-12-02 22:07:56 +0200
committerLauri Ojansivu <x@xet7.org>2017-12-02 22:07:56 +0200
commit847843e51db0c1ec3911643d2b063a2e61864cf6 (patch)
treeedf3b0f1572b1ecf0c6d236e2d087bdb6633a54d /client/components/users
parent9261371c510dbc1f2d08890db072ccc96f4f6c1d (diff)
parent3dc326db6a2ffe258f4da33645abd3326275d156 (diff)
downloadwekan-847843e51db0c1ec3911643d2b063a2e61864cf6.tar.gz
wekan-847843e51db0c1ec3911643d2b063a2e61864cf6.tar.bz2
wekan-847843e51db0c1ec3911643d2b063a2e61864cf6.zip
Merge branch 'fix-bug-on-missing-admin-panel-menuoption' of https://github.com/thuanpq/wekan into thuanpq-fix-bug-on-missing-admin-panel-menuoption
Diffstat (limited to 'client/components/users')
-rw-r--r--client/components/users/userHeader.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js
index 481b13c3..f8a1c8b7 100644
--- a/client/components/users/userHeader.js
+++ b/client/components/users/userHeader.js
@@ -35,10 +35,12 @@ Template.editProfilePopup.events({
const email = tpl.find('.js-profile-email').value.trim();
let isChangeUserName = false;
let isChangeEmail = false;
- Users.update(Meteor.userId(), {$set: {
- 'profile.fullname': fullname,
- 'profile.initials': initials,
- }});
+ Users.update(Meteor.userId(), {
+ $set: {
+ 'profile.fullname': fullname,
+ 'profile.initials': initials,
+ },
+ });
isChangeUserName = username !== Meteor.user().username;
isChangeEmail = email.toLowerCase() !== Meteor.user().emails[0].address.toLowerCase();
if (isChangeUserName && isChangeEmail) {