mirror of
https://github.com/wekan/wekan.git
synced 2026-02-08 09:24:20 +01:00
Merge branch 'fix-bug-on-missing-admin-panel-menuoption' of https://github.com/thuanpq/wekan into thuanpq-fix-bug-on-missing-admin-panel-menuoption
This commit is contained in:
commit
847843e51d
3 changed files with 8 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue