summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-04-18 18:25:34 +0300
committerLauri Ojansivu <x@xet7.org>2018-04-18 18:25:34 +0300
commit84fd00c5668caa7617aa094c9b7d47fe73926fd1 (patch)
tree66602d89991b84cf7981e83101b9a845772431f9 /client/components/lists/listBody.js
parente402200b872026d0a01b89cf50578ab6b49bf103 (diff)
parentf41589ba823f84313b37ee1bde224500d2a778d7 (diff)
downloadwekan-84fd00c5668caa7617aa094c9b7d47fe73926fd1.tar.gz
wekan-84fd00c5668caa7617aa094c9b7d47fe73926fd1.tar.bz2
wekan-84fd00c5668caa7617aa094c9b7d47fe73926fd1.zip
Merge branch 'devel'
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r--client/components/lists/listBody.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 6cc94371..52f34fab 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -37,11 +37,11 @@ BlazeComponent.extendComponent({
const labelIds = formComponent.labels.get();
const boardId = this.data().board()._id;
- const board = Boards.findOne(boardId);
let swimlaneId = '';
- if (board.view === 'board-view-swimlanes')
+ const boardView = Meteor.user().profile.boardView;
+ if (boardView === 'board-view-swimlanes')
swimlaneId = this.parentComponent().parentComponent().data()._id;
- else
+ else if (boardView === 'board-view-lists')
swimlaneId = Swimlanes.findOne({boardId})._id;
if (title) {
@@ -106,8 +106,8 @@ BlazeComponent.extendComponent({
},
idOrNull(swimlaneId) {
- const board = Boards.findOne(Session.get('currentBoard'));
- if (board.view === 'board-view-swimlanes')
+ const currentUser = Meteor.user();
+ if (currentUser.profile.boardView === 'board-view-swimlanes')
return swimlaneId;
return undefined;
},