Add holidays to calendar

This commit is contained in:
2024-12-19 14:25:33 +00:00
parent 200a07d6ba
commit 28645d8bc3
2 changed files with 4 additions and 4 deletions

View File

@@ -8,8 +8,8 @@ export const useCalendarStore = defineStore('calendar', {
return {};
},
actions: {
async getUpcoming(days: number): Promise<CalendarEntry[]> {
const response = await axios.get<CalendarEntry[]>(Environment.getUrlPrefix() + `:8081/api/calendar/calendar/upcoming?days=${days}`);
async getUpcoming(days: number, includeHolidays: boolean): Promise<CalendarEntry[]> {
const response = await axios.get<CalendarEntry[]>(Environment.getUrlPrefix() + `:8081/api/calendar/calendar/upcoming?days=${days}&includeHolidays=${includeHolidays}`);
return response.data;
}