mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02:00
fix:#40 format files
This commit is contained in:
@@ -38,7 +38,6 @@ async function getCourses() {
|
|||||||
if (selectedCourse.value.name !== "") {
|
if (selectedCourse.value.name !== "") {
|
||||||
await getModules();
|
await getModules();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const store = moduleStore();
|
const store = moduleStore();
|
||||||
@@ -56,12 +55,13 @@ const semesters: ComputedRef<{ name: string; value: string }[]> = computed(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// return current semester summer form march to august and winter from september to february
|
// return current semester summer form march to august and winter from september to february
|
||||||
const currentSemester: { name: string; value: string } = new Date().getMonth() >= 2 && new Date().getMonth() <= 7 ? semesters.value[1] : semesters.value[0];
|
const currentSemester: { name: string; value: string } =
|
||||||
|
new Date().getMonth() >= 2 && new Date().getMonth() <= 7
|
||||||
const selectedSemester: Ref<{ name: string; value: string }> = ref(
|
? semesters.value[1]
|
||||||
currentSemester
|
: semesters.value[0];
|
||||||
);
|
|
||||||
|
|
||||||
|
const selectedSemester: Ref<{ name: string; value: string }> =
|
||||||
|
ref(currentSemester);
|
||||||
|
|
||||||
//if semesters get changed, refresh the selected semester ref with a watcher
|
//if semesters get changed, refresh the selected semester ref with a watcher
|
||||||
watch(
|
watch(
|
||||||
|
Reference in New Issue
Block a user