Fixed calendar aspect ratio to my liking

This commit is contained in:
Magnus Åhall 2024-04-19 18:36:41 +02:00
parent e9967ebdc6
commit bcce516c66

View File

@ -1087,6 +1087,7 @@ class ScheduleCalendarTab extends Component {
minute: '2-digit',
},
firstDay: 1,
aspectRatio: 2.5,
});
this.calendar.render();
}
@ -1098,7 +1099,7 @@ class ScheduleCalendarTab extends Component {
StartDate: info.startStr,
EndDate: info.endStr,
}
_app.current.request('/schedule/list', req)
_app.current.request('/schedule/lis', req)
.then(data => {
const fullcalendarEvents = data.ScheduleEvents.map(sch => {
return {
@ -1109,6 +1110,7 @@ class ScheduleCalendarTab extends Component {
})
successCallback(fullcalendarEvents)
})
.catch(err=>failureCallback(err))
}
}