Fix card details bug

This commit is contained in:
Andrés Manelli 2018-01-31 13:02:50 -03:00
parent 8102ee5b4f
commit f6fb05d3f4
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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() {