mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Add holidays to calendar
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
function loadCalendar() {
|
||||
const newCalendarDays = [] as CalendarDay[];
|
||||
|
||||
calendarStore.getUpcoming(calendarDayCount).then((upcoming) => {
|
||||
calendarStore.getUpcoming(calendarDayCount, true).then((upcoming) => {
|
||||
const currentDay = startOfDay(currentTime.value);
|
||||
|
||||
for (let i = 0; i < calendarDayCount; i++) {
|
||||
@@ -78,7 +78,7 @@
|
||||
loadCalendar();
|
||||
|
||||
setInterval(() => currentTime.value = new Date(), 1000);
|
||||
setInterval(() => loadCalendar(), 60000);
|
||||
setInterval(() => loadCalendar(), 30 * 60 * 1000);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user