diff --git a/website/src/components/TimetableDisplay.vue b/website/src/components/TimetableDisplay.vue index 715fa36..c5f2eac 100644 --- a/website/src/components/TimetableDisplay.vue +++ b/website/src/components/TimetableDisplay.vue @@ -8,8 +8,8 @@ import TimetableLesson from '@/components/TimetableLesson.vue' import { useSessionStore } from '@/stores/session' import { EntityType, useSettingsStore } from '@/stores/settings' import { type MergedLesson, useTimetableStore } from '@/stores/timetable' -import { getCurrentDay, getIsWeekend } from '@/utils/days' -import { localizedWeekdays } from '@/utils/localization' +import { getCurrentDate, getCurrentDay, getIsWeekend, getWeekdays } from '@/utils/days' +import { localizeDate, localizeDay } from '@/utils/localization' import { getCurrentTime, lessonTimes } from '@/utils/times' const { targetDay } = defineProps<{ targetDay?: number }>() @@ -23,7 +23,7 @@ const detailsProps = defineModel<{ day: number; time: number; lessons: MergedLes const { currentEntityType } = storeToRefs(useSessionStore()) const { lessons } = storeToRefs(useTimetableStore()) -const { showHoursInTimetable, highlightCurrentTime, enableLessonDetails } = +const { showDatesInTimetable, showHoursInTimetable, highlightCurrentTime, enableLessonDetails } = storeToRefs(useSettingsStore()) const isWeekend = ref(getIsWeekend()) @@ -81,14 +81,19 @@ function filterForTargetDay(lessonsTime: MergedLesson[][]) {