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 @@