mirror of
https://github.com/wekan/wekan.git
synced 2026-03-06 05:40:16 +01:00
Reactive change when a date is modified.
This commit is contained in:
parent
374e986579
commit
9cb8aab3ba
1 changed files with 21 additions and 2 deletions
|
|
@ -148,12 +148,31 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
BlazeComponent.extendComponent({
|
BlazeComponent.extendComponent({
|
||||||
onRendered() {
|
onRendered() {
|
||||||
|
this.autorun(function(){
|
||||||
|
$('#calendar-view').fullCalendar('refetchEvents');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
calendarOptions() {
|
calendarOptions() {
|
||||||
return {
|
return {
|
||||||
id: 'calendar-view',
|
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) {
|
events(start, end, timezone, callback) {
|
||||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||||
const events = [];
|
const events = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue