Add support for clicking label names and board titles

This commit is contained in:
John R. Supplee 2021-01-21 01:48:24 +02:00
parent 52f920db12
commit 61c691a267
4 changed files with 82 additions and 11 deletions

View file

@ -1324,6 +1324,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({