summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-22 23:35:23 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-22 23:35:23 -0300
commit7b04f14e3c33db0b1c3ecff003262e7689383a15 (patch)
tree46a80202086eb247982595effa0746439a27efe5 /client/components/boards/boardBody.js
parenta14f4ffee297872c72edc99d7b147d18802f7d44 (diff)
downloadwekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.tar.gz
wekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.tar.bz2
wekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.zip
Allow toogle of lists and swimlanes views
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r--client/components/boards/boardBody.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 02174849..a068dd04 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -47,6 +47,18 @@ BlazeComponent.extendComponent({
return Utils.isMiniScreen() && Session.get('currentCard');
},
+ isViewSwimlanes() {
+ const currentBoardId = Session.get('currentBoard');
+ const board = Boards.findOne(currentBoardId);
+ return (board.view === 'board-view-swimlanes');
+ },
+
+ isViewLists() {
+ const currentBoardId = Session.get('currentBoard');
+ const board = Boards.findOne(currentBoardId);
+ return (board.view === 'board-view-lists');
+ },
+
events() {
return [{
// XXX The board-overlay div should probably be moved to the parent