diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-04-16 21:51:10 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-04-16 21:51:10 +0300 |
commit | 2cd1fbf9d92b46beaa9528d3dafaf3809451fb06 (patch) | |
tree | e5809e7226b71b845ee04e3b47e0ccd8c8c963d3 /client/components/boards/boardBody.js | |
parent | ea289c781075c893a0e3a6f05e96f3b3263f0466 (diff) | |
parent | 29c3d939a77eac2199cdf6fa1b2c660d582022be (diff) | |
download | wekan-2cd1fbf9d92b46beaa9528d3dafaf3809451fb06.tar.gz wekan-2cd1fbf9d92b46beaa9528d3dafaf3809451fb06.tar.bz2 wekan-2cd1fbf9d92b46beaa9528d3dafaf3809451fb06.zip |
Merge branch 'andresmanelli-viewProfile' into devel
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r-- | client/components/boards/boardBody.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index aa7b6a75..456bf9b3 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -87,15 +87,13 @@ BlazeComponent.extendComponent({ }, isViewSwimlanes() { - const currentBoardId = Session.get('currentBoard'); - const board = Boards.findOne(currentBoardId); - return (board.view === 'board-view-swimlanes'); + const currentUser = Meteor.user(); + return (currentUser.profile.boardView === 'board-view-swimlanes'); }, isViewLists() { - const currentBoardId = Session.get('currentBoard'); - const board = Boards.findOne(currentBoardId); - return (board.view === 'board-view-lists'); + const currentUser = Meteor.user(); + return (currentUser.profile.boardView === 'board-view-lists'); }, openNewListForm() { |