mirror of
https://github.com/wekan/wekan.git
synced 2025-12-31 06:38:49 +01:00
Allow toogle of lists and swimlanes views
This commit is contained in:
parent
a14f4ffee2
commit
7b04f14e3c
7 changed files with 51 additions and 8 deletions
|
|
@ -76,11 +76,14 @@ Lists.allow({
|
|||
|
||||
Lists.helpers({
|
||||
cards(swimlaneId) {
|
||||
return Cards.find(Filter.mongoSelector({
|
||||
const selector = {
|
||||
listId: this._id,
|
||||
archived: false,
|
||||
swimlaneId: swimlaneId,
|
||||
}), { sort: ['sort'] });
|
||||
};
|
||||
if (swimlaneId)
|
||||
selector.swimlaneId = swimlaneId;
|
||||
return Cards.find(Filter.mongoSelector(selector,
|
||||
{ sort: ['sort'] }));
|
||||
},
|
||||
|
||||
allCards() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue