diff options
author | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-27 23:00:14 +0300 |
---|---|---|
committer | Nicu Tofan <nicu.tofan@gmail.com> | 2018-06-27 23:00:14 +0300 |
commit | 9cb8aab3ba8554ae85141ac5e7e199867949bef2 (patch) | |
tree | be3989cf08528d55c3b81497e991d4c1c8aec506 /client/components/boards | |
parent | 374e9865792dd8219d1d7d10fcc23f98ed7c5817 (diff) | |
download | wekan-9cb8aab3ba8554ae85141ac5e7e199867949bef2.tar.gz wekan-9cb8aab3ba8554ae85141ac5e7e199867949bef2.tar.bz2 wekan-9cb8aab3ba8554ae85141ac5e7e199867949bef2.zip |
Reactive change when a date is modified.
Diffstat (limited to 'client/components/boards')
-rw-r--r-- | client/components/boards/boardBody.js | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js index 1308c280..dc6b9bef 100644 --- a/client/components/boards/boardBody.js +++ b/client/components/boards/boardBody.js @@ -148,12 +148,31 @@ BlazeComponent.extendComponent({ BlazeComponent.extendComponent({ onRendered() { - + this.autorun(function(){ + $('#calendar-view').fullCalendar('refetchEvents'); + }); }, calendarOptions() { return { id: 'calendar-view', - defaultView: 'basicWeek', + defaultView: 'agendaDay', + header: { + left: 'title today prev,next', + center: 'agendaDay,listDay,timelineDay agendaWeek,listWeek,timelineWeek month,timelineMonth timelineYear', + right: '', + }, + // height: 'parent', nope, doesn't work as the parent might be small + height: 'auto', + /* TODO: lists as resources: https://fullcalendar.io/docs/vertical-resource-view */ + navLinks: true, + nowIndicator: true, + businessHours: { + // days of week. an array of zero-based day of week integers (0=Sunday) + dow: [ 1, 2, 3, 4, 5 ], // Monday - Friday + start: '8:00', + end: '18:00', + }, + locale: TAPi18n.getLanguage(), events(start, end, timezone, callback) { const currentBoard = Boards.findOne(Session.get('currentBoard')); const events = []; |