diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2015-09-24 04:10:27 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2015-09-24 12:32:48 +0200 |
commit | b2ab174fd56a22da1600bbefc8965474fd458a1f (patch) | |
tree | c853eb0a45e52465d32c904dce367e64573cc144 | |
parent | 33888f9fbbe61376c2390a9b6d07f123eda23624 (diff) | |
download | wekan-b2ab174fd56a22da1600bbefc8965474fd458a1f.tar.gz wekan-b2ab174fd56a22da1600bbefc8965474fd458a1f.tar.bz2 wekan-b2ab174fd56a22da1600bbefc8965474fd458a1f.zip |
sidebar: Filter archived cards/lists for current board
The archived items should be filtered for the current board or else you
will get a global list of all archived items on all boards.
-rw-r--r-- | client/components/sidebar/sidebarArchives.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/components/sidebar/sidebarArchives.js b/client/components/sidebar/sidebarArchives.js index 52d42edb..18970267 100644 --- a/client/components/sidebar/sidebarArchives.js +++ b/client/components/sidebar/sidebarArchives.js @@ -11,11 +11,17 @@ BlazeComponent.extendComponent({ }, archivedCards() { - return Cards.find({ archived: true }); + return Cards.find({ + archived: true, + boardId: Session.get('currentBoard'), + }); }, archivedLists() { - return Lists.find({ archived: true }); + return Lists.find({ + archived: true, + boardId: Session.get('currentBoard'), + }); }, cardIsInArchivedList() { |