mirror of
https://github.com/wekan/wekan.git
synced 2025-12-22 10:20:14 +01:00
add full name if exists in email-invite-subject or when tagging someone with '@' while commenting a card
This commit is contained in:
parent
b12312f998
commit
d9329a9e15
6 changed files with 23 additions and 7 deletions
|
|
@ -17,8 +17,10 @@ Template.editor.onRendered(() => {
|
|||
currentBoard
|
||||
.activeMembers()
|
||||
.map(member => {
|
||||
const username = Users.findOne(member.userId).username;
|
||||
return username.includes(term) ? username : null;
|
||||
const user = Users.findOne(member.userId);
|
||||
const username = user.username;
|
||||
const fullName = user.profile && user.profile !== undefined ? user.profile.fullname : "";
|
||||
return username.includes(term) || fullName.includes(term) ? fullName + "(" + username + ")" : null;
|
||||
})
|
||||
.filter(Boolean), [...specialHandleNames])
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue