Add clickable list titles

This commit is contained in:
John R. Supplee 2021-01-20 21:52:27 +02:00
parent 6d9928ea8f
commit 52f920db12
4 changed files with 36 additions and 2 deletions

View file

@ -362,6 +362,20 @@ Meteor.methods({
const list = Lists.findOne({ _id: listId });
list.toggleSoftLimit(!list.getWipLimit('soft'));
},
myLists() {
// my lists
return _.uniq(
Lists.find(
{ boardId: { $in: Boards.userBoardIds(this.userId) } },
{ fields: { title: 1 } },
)
.fetch()
.map(list => {
return list.title;
}),
);
},
});
Lists.hookOptions.after.update = { fetchPrevious: false };