1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix public calendar

This commit is contained in:
Sylvain 2020-09-30 11:45:44 +02:00
parent 495a4686d5
commit c0a46e5bf1

View File

@ -55,7 +55,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
evt: filter.evt,
dispo: filter.dispo
});
$scope.calendarConfig.events = availabilitySourceUrl();
$scope.eventSources = [{
url: availabilitySourceUrl()
}];
// external iCalendar events sources
$scope.externals.forEach(e => {
if (e.checked) {
@ -159,7 +161,6 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
const initialize = () => {
// fullCalendar (v2) configuration
$scope.calendarConfig = CalendarConfig({
events: availabilitySourceUrl(),
slotEventOverlap: true,
header: {
left: 'month agendaWeek agendaDay',
@ -179,6 +180,9 @@ Application.Controllers.controller('CalendarController', ['$scope', '$state', '$
return eventRenderCb(event, element);
}
});
$scope.eventSources = [{
url: availabilitySourceUrl()
}];
$scope.externals.forEach(e => {
if (e.checked) {
$scope.eventSources.push({