mirror of
https://github.com/wekan/wekan.git
synced 2026-01-30 21:25:17 +01:00
Add support for clicking label names and board titles
This commit is contained in:
parent
52f920db12
commit
61c691a267
4 changed files with 82 additions and 11 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue