Browse Source

Fix card details bug

Andrés Manelli 7 years ago
parent
commit
f6fb05d3f4

+ 1 - 1
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

+ 2 - 3
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() {