mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Import members: UI flow ok
This commit is contained in:
parent
658ef5ebe1
commit
3dc70b3ea4
8 changed files with 258 additions and 88 deletions
|
|
@ -2,12 +2,14 @@ Users = Meteor.users;
|
|||
|
||||
// Search a user in the complete server database by its name or username. This
|
||||
// is used for instance to add a new user to a board.
|
||||
const searchInFields = ['username', 'profile.name'];
|
||||
const searchInFields = ['username', 'profile.fullname'];
|
||||
Users.initEasySearch(searchInFields, {
|
||||
use: 'mongo-db',
|
||||
returnFields: [...searchInFields, 'profile.avatarUrl'],
|
||||
});
|
||||
|
||||
|
||||
|
||||
Users.helpers({
|
||||
boards() {
|
||||
return Boards.find({ userId: this._id });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue