Introducing third board view: calendar.

A dependency to rzymek:fullcalendar has also been added.
This commit is contained in:
Nicu Tofan 2018-06-26 19:55:23 +03:00
parent 43dde4a10f
commit 226d25ca94
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
8 changed files with 21 additions and 2 deletions

View file

@ -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]