From 7c3daa9c50e9179e92003c78607ec503ad6ea5ed Mon Sep 17 00:00:00 2001 From: Elmar Kresse Date: Thu, 25 Jan 2024 22:36:41 +0100 Subject: [PATCH] fix:#5 fixed menubar active class --- frontend/src/components/MenuBar.vue | 41 ++++++++--------------------- frontend/src/router/index.ts | 2 +- frontend/src/view/FreeRooms.vue | 6 ++--- 3 files changed, 15 insertions(+), 34 deletions(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index dd7ae01..84b4dcd 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -9,43 +9,44 @@ const items = computed(() => [ { label: t("createCalendar"), icon: "pi pi-fw pi-plus", - route: "/", + route: "/home" }, { label: t("editCalendar"), icon: "pi pi-fw pi-pencil", - route: "/edit", + route: "/edit" }, { label: t("rooms"), icon: "pi pi-fw pi-angle-down", + info: "rooms", items: [ { label: t("roomFinderPage.roomSchedule"), icon: "pi pi-fw pi-hourglass", - route: "/rooms", + route: "/rooms/occupancy" }, { label: t("freeRooms.freeRooms"), icon: "pi pi-fw pi-calendar", - route: "/rooms/free", + route: "/rooms/free" }, ], }, { label: t("faq"), icon: "pi pi-fw pi-book", - route: "/faq", + route: "/faq" }, { label: t("imprint"), icon: "pi pi-fw pi-id-card", - route: "/imprint", + route: "/imprint" }, { label: t("privacy"), icon: "pi pi-fw pi-exclamation-triangle", - route: "/privacy-policy", + route: "/privacy-policy" }, ]); @@ -59,7 +60,7 @@ const items = computed(() => [ -