🐛 Make full data fetch after changing preferences
This commit is contained in:
@ -19,11 +19,10 @@ export const theme = ref(localStorage.getItem("theme") || "auto");
|
|||||||
|
|
||||||
watch(classFilter, (newValue) => {
|
watch(classFilter, (newValue) => {
|
||||||
localStorage.setItem("classFilter", newValue);
|
localStorage.setItem("classFilter", newValue);
|
||||||
fetchData(getNextAndPrevDay(selectedDate.value), true);
|
fetchData(getNextAndPrevDay(selectedDate.value), false);
|
||||||
});
|
});
|
||||||
watch(timetableGroups, (newValue) => {
|
watch(timetableGroups, (newValue) => {
|
||||||
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
localStorage.setItem("timetableGroups", JSON.stringify(newValue));
|
||||||
fetchData(getNextAndPrevDay(selectedDate.value), true);
|
|
||||||
});
|
});
|
||||||
watch(language, (newValue) => {
|
watch(language, (newValue) => {
|
||||||
localStorage.setItem("lang", newValue);
|
localStorage.setItem("lang", newValue);
|
||||||
|
Reference in New Issue
Block a user