🐛 Make full data fetch after changing preferences

This commit is contained in:
2023-01-02 22:24:33 +01:00
parent 46657359f0
commit 99864696f3

View File

@ -19,11 +19,10 @@ export const theme = ref(localStorage.getItem("theme") || "auto");
watch(classFilter, (newValue) => {
localStorage.setItem("classFilter", newValue);
fetchData(getNextAndPrevDay(selectedDate.value), true);
fetchData(getNextAndPrevDay(selectedDate.value), false);
});
watch(timetableGroups, (newValue) => {
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
fetchData(getNextAndPrevDay(selectedDate.value), true);
});
watch(language, (newValue) => {
localStorage.setItem("lang", newValue);