added calendar configuration event (#2698)

This commit is contained in:
Jelle Sebreghts
2021-08-06 18:35:37 +02:00
committed by GitHub
parent df62c8a428
commit 21f785638c
4 changed files with 98 additions and 12 deletions

View File

@@ -39,18 +39,7 @@ class CalendarController extends AbstractController
$factory = $this->getDateTimeFactory();
$defaultStart = $factory->createDateTime($configuration->getTimesheetDefaultBeginTime());
$config = [
'dayLimit' => $configuration->getCalendarDayLimit(),
'showWeekNumbers' => $configuration->isCalendarShowWeekNumbers(),
'showWeekends' => $configuration->isCalendarShowWeekends(),
'businessDays' => $configuration->getCalendarBusinessDays(),
'businessTimeBegin' => $configuration->getCalendarBusinessTimeBegin(),
'businessTimeEnd' => $configuration->getCalendarBusinessTimeEnd(),
'slotDuration' => $configuration->getCalendarSlotDuration(),
'timeframeBegin' => $configuration->getCalendarTimeframeBegin(),
'timeframeEnd' => $configuration->getCalendarTimeframeEnd(),
'dragDropAmount' => $configuration->getCalendarDragAndDropMaxEntries(),
];
$config = $this->calendarService->getConfiguration();
$isPunchMode = !$mode->canEditDuration() && !$mode->canEditBegin() && !$mode->canEditEnd();
$dragAndDrop = [];