diff options
author | Thiago Fernando S. dos Santos <thiagofernando@outlook.com> | 2018-05-04 16:44:50 -0300 |
---|---|---|
committer | Thiago Fernando S. dos Santos <thiagofernando@outlook.com> | 2018-05-04 16:44:50 -0300 |
commit | 2fa1b3122d2acc65219e5d09974add21ac4c76fd (patch) | |
tree | 6996d20e50378be8a2e80aa68ee30b341605fcbb /client/components/users | |
parent | c48c18c4e9c3d86b2ad19c98b24b9240bfb69ffc (diff) | |
download | wekan-2fa1b3122d2acc65219e5d09974add21ac4c76fd.tar.gz wekan-2fa1b3122d2acc65219e5d09974add21ac4c76fd.tar.bz2 wekan-2fa1b3122d2acc65219e5d09974add21ac4c76fd.zip |
Includes possibility to block username change
Diffstat (limited to 'client/components/users')
-rw-r--r-- | client/components/users/userHeader.jade | 5 | ||||
-rw-r--r-- | client/components/users/userHeader.js | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade index 4ac59f45..a8fdb143 100644 --- a/client/components/users/userHeader.jade +++ b/client/components/users/userHeader.jade @@ -33,7 +33,10 @@ template(name="editProfilePopup") | {{_ 'username'}} span.error.hide.username-taken | {{_ 'error-username-taken'}} - input.js-profile-username(type="text" value=username) + if allowUserNameChange + input.js-profile-username(type="text" value=username) + else + input.js-profile-username(type="text" value=username readonly) label | {{_ 'initials'}} input.js-profile-initials(type="text" value=profile.initials) diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index be7d4dcb..d96a9b3d 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -24,6 +24,9 @@ Template.editProfilePopup.helpers({ allowEmailChange() { return AccountSettings.findOne('accounts-allowEmailChange').booleanValue; }, + allowUserNameChange() { + return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue; + }, }); Template.editProfilePopup.events({ |