Import members: UI flow ok

This commit is contained in:
Xavier Priour 2015-11-13 12:35:41 +01:00
parent 658ef5ebe1
commit 3dc70b3ea4
8 changed files with 258 additions and 88 deletions

View file

@ -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 });