From 0a62089df02b2ab308d4749a837e08c4164cb770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Tue, 17 Apr 2018 01:55:57 -0300 Subject: Allow description and member two way binding --- client/components/lists/listBody.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/components/lists') diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index c0533008..778312d2 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -300,9 +300,10 @@ BlazeComponent.extendComponent({ // Swimlane where to insert card const swimlane = $(Popup._getTopStack().openerElement).closest('.js-swimlane'); this.swimlaneId = ''; - if (board.view === 'board-view-swimlanes') + const boardView = Meteor.user().profile.boardView; + if (boardView === 'board-view-swimlanes') this.swimlaneId = Blaze.getData(swimlane[0])._id; - else + else if (boardView === 'board-view-lists') this.swimlaneId = Swimlanes.findOne({boardId: this.boardId})._id; }, @@ -382,7 +383,6 @@ BlazeComponent.extendComponent({ sort: Lists.findOne(this.listId).cards().count(), type: 'cardType-importedBoard', importedId: impBoardId, - description: Boards.findOne({_id: impBoardId}).description, }); Filter.addException(_id); Popup.close(); -- cgit v1.2.3-1-g7c22