diff options
author | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-31 13:02:50 -0300 |
---|---|---|
committer | Andrés Manelli <andresmanelli@gmail.com> | 2018-01-31 14:13:14 -0300 |
commit | f6fb05d3f49c656e9890351f5d7c0827bf2605c1 (patch) | |
tree | 9f575badb9ab540749594a9a1c791479192db640 /client/components | |
parent | 8102ee5b4ffedc1cd640d6858fbd50fbb0cbbbc5 (diff) | |
download | wekan-f6fb05d3f49c656e9890351f5d7c0827bf2605c1.tar.gz wekan-f6fb05d3f49c656e9890351f5d7c0827bf2605c1.tar.bz2 wekan-f6fb05d3f49c656e9890351f5d7c0827bf2605c1.zip |
Fix card details bug
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/swimlanes/swimlanes.jade | 2 | ||||
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/client/components/swimlanes/swimlanes.jade b/client/components/swimlanes/swimlanes.jade index 77afa399..e6a0cd34 100644 --- a/client/components/swimlanes/swimlanes.jade +++ b/client/components/swimlanes/swimlanes.jade @@ -14,7 +14,7 @@ template(name="swimlane") else each currentBoard.lists +list(this) - if currentCardIsInThisList + if currentCardIsInThisList _id ../_id +cardDetails(currentCard) if currentUser.isBoardMember +addListForm diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index 397f9e9b..68039b17 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -28,10 +28,9 @@ BlazeComponent.extendComponent({ }); }, - currentCardIsInThisList() { + currentCardIsInThisList(listId, swimlaneId) { const currentCard = Cards.findOne(Session.get('currentCard')); - const listId = this.currentData()._id; - return currentCard && currentCard.listId === listId; //TODO: AND IN THIS SWIMLANE + return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId; }, events() { |