Only show label names on global search for type='board'

This commit is contained in:
John R. Supplee 2021-02-23 17:49:32 +02:00
parent a8a9ee91bf
commit b419e17cac

View file

@ -1420,15 +1420,17 @@ 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;
}),
);
});
Boards.userBoards(Meteor.userId(), false, { type: 'board' }).forEach(
board => {
names = names.concat(
board.labels
.filter(label => !!label.name)
.map(label => {
return label.name;
}),
);
},
);
return _.uniq(names).sort();
},
myBoardNames() {