summaryrefslogtreecommitdiffstats
path: root/client/components/boards/boardBody.js
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-27 22:23:28 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-27 22:23:28 +0300
commit3c4549fe64c8b57f1f9e2eb700889aa1488ad056 (patch)
tree13e08a0bbf147b69f742da1ddfa92b9ddc9d3533 /client/components/boards/boardBody.js
parent0394a78ecea21c0174dd0b6f1d9d31947fa3b48e (diff)
downloadwekan-3c4549fe64c8b57f1f9e2eb700889aa1488ad056.tar.gz
wekan-3c4549fe64c8b57f1f9e2eb700889aa1488ad056.tar.bz2
wekan-3c4549fe64c8b57f1f9e2eb700889aa1488ad056.zip
Can show card on top of calendar
Diffstat (limited to 'client/components/boards/boardBody.js')
-rw-r--r--client/components/boards/boardBody.js63
1 files changed, 6 insertions, 57 deletions
diff --git a/client/components/boards/boardBody.js b/client/components/boards/boardBody.js
index 935c550f..911b0120 100644
--- a/client/components/boards/boardBody.js
+++ b/client/components/boards/boardBody.js
@@ -113,63 +113,6 @@ BlazeComponent.extendComponent({
.childComponents('addListForm')[0].open();
}
},
-
- calendarOptions() {
- return {
- id: 'calendar-view',
- defaultView: 'basicWeek',
- header: {
- left: 'title',
- center: 'agendaDay,listDay,timelineDay agendaWeek,listWeek,timelineWeek month,timelineMonth timelineYear',
- right: 'today prev,next',
- },
- views: {
- basic: {
- // options apply to basicWeek and basicDay views
- },
- agenda: {
- // options apply to agendaWeek and agendaDay views
- },
- week: {
- // options apply to basicWeek and agendaWeek views
- },
- day: {
- // options apply to basicDay and agendaDay views
- },
- },
- themeSystem: 'jquery-ui',
- height: 'parent',
- /* 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 - Thursday
- start: '8:00',
- end: '18:00',
- },
- locale: TAPi18n.getLanguage(),
- events(start, end, timezone, callback) {
- const currentBoard = Boards.findOne(Session.get('currentBoard'));
- const events = [];
- currentBoard.cardsInInterval(start.toDate(), end.toDate()).forEach(function(card){
- events.push({
- id: card.id,
- title: card.title,
- start: card.startAt,
- end: card.endAt,
- url: FlowRouter.url('card', {
- boardId: currentBoard._id,
- slug: currentBoard.slug,
- cardId: card._id,
- }),
- });
- });
- callback(events);
- },
- };
- },
-
events() {
return [{
// XXX The board-overlay div should probably be moved to the parent
@@ -202,3 +145,9 @@ BlazeComponent.extendComponent({
},
}).register('boardBody');
+
+BlazeComponent.extendComponent({
+ onRendered() {
+
+ },
+}).register('calendarView');