Switch to global date selector

This commit is contained in:
2022-05-04 00:32:23 +02:00
parent 9c4a09fadc
commit 7ecff18efd
8 changed files with 134 additions and 76 deletions

View File

@ -20,6 +20,9 @@ watch(timetableClass, (newValue) => {
fetchData();
});
export const selectedDate = ref(new Date(new Date().setUTCHours(0, 0, 0, 0)));
export const selectedDay = computed(() => selectedDate.value.getDay() - 1);
export const timetable = ref([]);
export const substitutions = ref([]);
export const history = ref([]);