From 2e5f156462bba66fbe897c9652ac1965223db61c Mon Sep 17 00:00:00 2001 From: 26wilber <26wilber@da.org> Date: Fri, 2 Feb 2024 15:43:58 -0500 Subject: [PATCH 1/3] I added the event changer under the account on navbar and above logout button. --- components/Navbar.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index d3542b3..1875f12 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -41,7 +41,9 @@ console.log(sessionState?.value?.userCtx?.roles) if (sessionState?.value?.userCtx?.roles?.indexOf('_admin') != -1) links.push({ label: "Users", to: "/users" }) +const events = ['2024test'] +const selectedEvent = ref(events[0]) From 58625aac0a95d4862dc9f130e5d39581f43eb70d Mon Sep 17 00:00:00 2001 From: 26wilber <26wilber@da.org> Date: Fri, 2 Feb 2024 16:13:29 -0500 Subject: [PATCH 2/3] I Fixed the dropdown for events in accounts --- components/Navbar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index 1875f12..b064c41 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -43,7 +43,7 @@ if (sessionState?.value?.userCtx?.roles?.indexOf('_admin') != -1) const events = ['2024test'] -const selectedEvent = ref(events[0]) +let selectedEvent = ref(window.localStorage.getItem("event")) - +