This commit is contained in:
Andrés Manelli 2018-04-16 14:33:53 -03:00
parent c12e003fd3
commit e5995477b8
8 changed files with 44 additions and 38 deletions

View file

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