add today button again

This commit is contained in:
Julie Lenaerts 2022-05-11 14:50:26 +02:00
parent ce78177ab7
commit f8a9cafacb

View File

@ -231,9 +231,17 @@ export default {
this.fetchData(); this.fetchData();
} }
}, },
today: {
text: this.$t('today'),
click: () => {
let calendarApi = this.$refs.fullCalendar.getApi();
calendarApi.changeView('timeGridDay', new Date());
this.fetchData();
}
},
}, },
headerToolbar: { headerToolbar: {
left: 'prev next', left: 'prev next today',
center: 'title', center: 'title',
right: 'month,week,day' right: 'month,week,day'
}, },