summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-24 15:12:47 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-24 15:12:47 +0200
commit57fa7af24c8d59629e1b82f6d4f2173d77710128 (patch)
tree8531b6c79adcd0e48ea3edbf7c231c74acc63a24
parentb8403b9c35b141c61c5bee5d0bfd6522f9c874cf (diff)
parentb2ab174fd56a22da1600bbefc8965474fd458a1f (diff)
downloadwekan-57fa7af24c8d59629e1b82f6d4f2173d77710128.tar.gz
wekan-57fa7af24c8d59629e1b82f6d4f2173d77710128.tar.bz2
wekan-57fa7af24c8d59629e1b82f6d4f2173d77710128.zip
Merge pull request #326 from AlexanderS/fix/display-all-archived
sidebar: Filter archived cards/lists for current board
-rw-r--r--client/components/sidebar/sidebarArchives.js10
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() {