Only add title to event order when we're using the week-view

Closes #4443

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-18 15:42:12 +02:00
parent a5bc22a692
commit 5334250382
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ export default {
eventDidMount,
noEventsDidMount,
// FIXME: remove title if upstream is fixed (https://github.com/fullcalendar/fullcalendar/issues/6608#issuecomment-954241059)
eventOrder: ['title', 'start', '-duration', 'allDay', eventOrder],
eventOrder: (this.$route.params.view === 'timeGridWeek' ? ['title'] : []).concat(['start', '-duration', 'allDay', eventOrder]),
forceEventDuration: false,
headerToolbar: false,
height: '100%',