Merge pull request #3459 from jrsupplee/new-search

Search All Boards: Added list of board, list and color names.
This commit is contained in:
Lauri Ojansivu 2021-01-22 16:21:01 +02:00 committed by GitHub
commit 1df060b8f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 198 additions and 9 deletions

View file

@ -1343,6 +1343,26 @@ if (Meteor.isServer) {
},
});
},
myLabelNames() {
let names = [];
Boards.userBoards(Meteor.userId()).forEach(board => {
names = names.concat(
board.labels
.filter(label => !!label.name)
.map(label => {
return label.name;
}),
);
});
return _.uniq(names).sort();
},
myBoardNames() {
return _.uniq(
Boards.userBoards(Meteor.userId()).map(board => {
return board.title;
}),
).sort();
},
});
Meteor.methods({