mirror of
https://github.com/wekan/wekan.git
synced 2026-02-06 00:21:48 +01:00
Includes possibility to block username change
This commit is contained in:
parent
c48c18c4e9
commit
2fa1b3122d
47 changed files with 139 additions and 71 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -24,6 +24,9 @@ Template.editProfilePopup.helpers({
|
|||
allowEmailChange() {
|
||||
return AccountSettings.findOne('accounts-allowEmailChange').booleanValue;
|
||||
},
|
||||
allowUserNameChange() {
|
||||
return AccountSettings.findOne('accounts-allowUserNameChange').booleanValue;
|
||||
},
|
||||
});
|
||||
|
||||
Template.editProfilePopup.events({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue