From 29949462ed813b1624437b31b77df87b9099c001 Mon Sep 17 00:00:00 2001 From: Laure Jablonski Date: Wed, 19 Mar 2025 11:48:11 +0100 Subject: [PATCH] style: menubalk klapt in als het scherm te klein wordt om alle componenten te tonen --- frontend/src/components/MenuBar.vue | 107 +++++++++++++++++++++++++--- 1 file changed, 97 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/MenuBar.vue b/frontend/src/components/MenuBar.vue index 45ff871c..c34946a0 100644 --- a/frontend/src/components/MenuBar.vue +++ b/frontend/src/components/MenuBar.vue @@ -9,14 +9,10 @@ const { t, locale } = useI18n(); - // Instantiate variables to use in html to render right - // Links and content dependent on the role (student or teacher) - const path = "/user"; - const role = auth.authState.activeRole; - const name : string = auth.authState.user!.profile.name!; - const initials : string = name + const name: string = auth.authState.user!.profile.name!; + const initials: string = name .split(" ") .map((n) => n[0]) .join(""); @@ -34,6 +30,8 @@ console.log(langCode); }; + const drawer = ref(false); + // when the user wants to logout, the authentication must be set to False function performLogout() { auth.logout(); @@ -42,12 +40,85 @@