added calendar configuration event (#2698)
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user