|
@@ -30,7 +30,14 @@ BlazeComponent.extendComponent({
|
|
|
|
|
|
currentCardIsInThisList(listId, swimlaneId) {
|
|
currentCardIsInThisList(listId, swimlaneId) {
|
|
const currentCard = Cards.findOne(Session.get('currentCard'));
|
|
const currentCard = Cards.findOne(Session.get('currentCard'));
|
|
- return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId;
|
|
|
|
|
|
+ const currentBoardId = Session.get('currentBoard');
|
|
|
|
+ const board = Boards.findOne(currentBoardId);
|
|
|
|
+ if (board.view === 'board-view-lists')
|
|
|
|
+ return currentCard && currentCard.listId === listId;
|
|
|
|
+ else if (board.view === 'board-view-swimlanes')
|
|
|
|
+ return currentCard && currentCard.listId === listId && currentCard.swimlaneId === swimlaneId;
|
|
|
|
+ else
|
|
|
|
+ return false;
|
|
},
|
|
},
|
|
|
|
|
|
events() {
|
|
events() {
|