summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-04-17 01:55:57 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-08-10 23:59:08 +0200
commit0a62089df02b2ab308d4749a837e08c4164cb770 (patch)
tree7a8ff38e2074e3568d99f5202893d32398d6fb76 /client/components/lists
parenta93de07fb9b85f97da274bf549e5244ee8e30484 (diff)
downloadwekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.gz
wekan-0a62089df02b2ab308d4749a837e08c4164cb770.tar.bz2
wekan-0a62089df02b2ab308d4749a837e08c4164cb770.zip
Allow description and member two way binding
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.js6
1 files changed, 3 insertions, 3 deletions
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();