Add settings page

This commit is contained in:
2022-05-01 14:26:07 +02:00
parent 8c64568077
commit 495771b0e8
2 changed files with 77 additions and 1 deletions

View File

@ -1,5 +1,19 @@
import { computed } from "@vue/reactivity";
import { ref } from "vue";
import { ref, watch } from "vue";
export const substitutionFilter = ref(
localStorage.getItem("substitutionFilter") || "all"
);
export const timetableClass = ref(
localStorage.getItem("timetableClass") || "none"
);
watch(substitutionFilter, (newValue) => {
localStorage.setItem("substitutionFilter", newValue);
});
watch(timetableClass, (newValue) => {
localStorage.setItem("timetableClass", newValue);
});
export const history = ref([]);