Allow description and member two way binding

This commit is contained in:
Andrés Manelli 2018-04-17 01:55:57 -03:00
parent a93de07fb9
commit 0a62089df0
6 changed files with 82 additions and 14 deletions

View file

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