diff options
author | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-21 17:06:22 +0200 |
---|---|---|
committer | Angelo Gallarello <angelo.gallarell@gmail.com> | 2018-09-21 17:06:22 +0200 |
commit | 99d38f2d61527f599f3246ea5f02ec482841ab0e (patch) | |
tree | edc21d55950558e99b85e8fefdc20e1d2384aca1 /models | |
parent | 80e06b8ffc7b9440b9e46ba43200a91c1b617cb0 (diff) | |
download | wekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.tar.gz wekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.tar.bz2 wekan-99d38f2d61527f599f3246ea5f02ec482841ab0e.zip |
Fixed card move to top/bottom
Diffstat (limited to 'models')
-rw-r--r-- | models/lists.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/models/lists.js b/models/lists.js index 9bcb9ba1..b99fe8f5 100644 --- a/models/lists.js +++ b/models/lists.js @@ -86,6 +86,17 @@ Lists.helpers({ { sort: ['sort'] }); }, + cardsUnfiltered(swimlaneId) { + const selector = { + listId: this._id, + archived: false, + }; + if (swimlaneId) + selector.swimlaneId = swimlaneId; + return Cards.find(selector, + { sort: ['sort'] }); + }, + allCards() { return Cards.find({ listId: this._id }); }, |