From 226d25ca943e3be8256639f0fc9b517cb0c217a0 Mon Sep 17 00:00:00 2001 From: Nicu Tofan Date: Tue, 26 Jun 2018 19:55:23 +0300 Subject: Introducing third board view: calendar. A dependency to rzymek:fullcalendar has also been added. --- client/components/boards/boardBody.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/components/boards/boardBody.js') diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index dfe7b8d2..a377dd73 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -98,6 +98,12 @@ BlazeComponent.extendComponent({ return (currentUser.profile.boardView === 'board-view-lists'); }, + isViewCalendar() { + const currentUser = Meteor.user(); + if (!currentUser) return true; + return (currentUser.profile.boardView === 'board-view-cal'); + }, + openNewListForm() { if (this.isViewSwimlanes()) { this.childComponents('swimlane')[0] -- cgit v1.2.3-1-g7c22