diff --git a/client/src/components/header/AccountMenu.vue b/client/src/components/header/AccountMenu.vue index a6f0db29..ac310748 100644 --- a/client/src/components/header/AccountMenu.vue +++ b/client/src/components/header/AccountMenu.vue @@ -5,6 +5,7 @@ :user="userStore" @logout="logout" @select-course-session="selectCourseSession" + @close="emit('close')" /> @@ -14,6 +15,8 @@ import { useCourseSessionsStore } from "@/stores/courseSessions"; import { useUserStore } from "@/stores/user"; import type { CourseSession } from "@/types"; +const emit = defineEmits(["close"]); + const logout = () => { userStore.handleLogout(); }; diff --git a/client/src/components/header/AccountMenuContent.vue b/client/src/components/header/AccountMenuContent.vue index ec68279c..23e3be42 100644 --- a/client/src/components/header/AccountMenuContent.vue +++ b/client/src/components/header/AccountMenuContent.vue @@ -2,7 +2,6 @@ import CourseSessionsMenu from "@/components/header/CourseSessionsMenu.vue"; import type { User } from "@/stores/user"; import type { CourseSession } from "@/types"; -import { PopoverButton } from "@headlessui/vue"; import { useRouter } from "vue-router"; const props = defineProps<{ @@ -11,12 +10,13 @@ const props = defineProps<{ selectedCourseSession?: string; }>(); -const emit = defineEmits(["selectCourseSession", "logout"]); +const emit = defineEmits(["selectCourseSession", "logout", "close"]); const router = useRouter(); async function navigate(routeName: string) { await router.push({ name: routeName }); + emit("close"); } @@ -34,9 +34,9 @@ async function navigate(routeName: string) {

{{ user.first_name }} {{ user.last_name }}

{{ user.email }}
- +
diff --git a/client/src/components/header/MainNavigationBar.vue b/client/src/components/header/MainNavigationBar.vue index 8692418a..8ecaa297 100644 --- a/client/src/components/header/MainNavigationBar.vue +++ b/client/src/components/header/MainNavigationBar.vue @@ -133,7 +133,7 @@ const hasMentorManagementMenu = computed(() => { :show="state.showMobileProfileMenu" @closemodal="state.showMobileProfileMenu = false" > - + @@ -325,10 +325,11 @@ const hasMentorManagementMenu = computed(() => {
- +