Merge pull request #7289 from opf/fix/30143/exclusive-calendar-end-date

[30143] Respect fullcalendar exclusive end date

[ci skip]
pull/7288/head
Oliver Günther 6 years ago committed by GitHub
commit c5ffc4a04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      frontend/src/app/modules/calendar/wp-calendar/wp-calendar.component.ts

@ -164,10 +164,13 @@ export class WorkPackagesCalendarController implements OnInit, OnDestroy {
let startDate = this.eventDate(workPackage, 'start'); let startDate = this.eventDate(workPackage, 'start');
let endDate = this.eventDate(workPackage, 'due'); let endDate = this.eventDate(workPackage, 'due');
let exclusiveEnd = moment(endDate).add(1, 'days');
return { return {
title: workPackage.subject, title: workPackage.subject,
start: startDate, start: startDate,
end: endDate, end: exclusiveEnd,
allDay: true,
className: `__hl_background_type_${workPackage.type.id}`, className: `__hl_background_type_${workPackage.type.id}`,
workPackage: workPackage workPackage: workPackage
}; };

Loading…
Cancel
Save