mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-19 19:42:25 +01:00
feat:#30 reactive URL parameters RoomOccupation
This commit is contained in:
@@ -134,6 +134,7 @@ import { requestFreeRooms } from "@/api/requestFreeRooms.ts";
|
||||
import { FilterMatchMode } from "primevue/api";
|
||||
import { padStart } from "@fullcalendar/core/internal";
|
||||
import router from "@/router";
|
||||
import { formatYearMonthDay } from "@/helpers/dates";
|
||||
|
||||
const mobilePage = inject("mobilePage") as Ref<boolean>;
|
||||
const filters = ref({
|
||||
@@ -146,7 +147,7 @@ function occupationRoute(room: string): void {
|
||||
name: "room-schedule",
|
||||
query: {
|
||||
room: room,
|
||||
date: date.value.toISOString().split("T")[0].replace(/-/g, ""),
|
||||
date: formatYearMonthDay(date.value),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user