mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Fix auto-complete username when creating new cards (addCardForm)
This commit is contained in:
parent
2ac5f0b2d7
commit
e176410b54
1 changed files with 4 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ BlazeComponent.extendComponent({
|
|||
[
|
||||
// User mentions
|
||||
{
|
||||
match: /\B@([\w.]*)$/,
|
||||
match: /\B@([\w.-]*)$/,
|
||||
search(term, callback) {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
callback(
|
||||
|
|
@ -347,6 +347,9 @@ BlazeComponent.extendComponent({
|
|||
);
|
||||
},
|
||||
template(user) {
|
||||
if (user.profile && user.profile.fullname) {
|
||||
return (user.username + " (" + user.profile.fullname + ")");
|
||||
}
|
||||
return user.username;
|
||||
},
|
||||
replace(user) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue