mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 21:17:18 -04:00
Fix card details bug
This commit is contained in:
parent
8102ee5b4f
commit
f6fb05d3f4
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue