mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Only show label names on global search for type='board'
This commit is contained in:
parent
a8a9ee91bf
commit
b419e17cac
1 changed files with 11 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue