diff --git a/frontend/src/components/UserInfoButton.vue b/frontend/src/components/UserInfoButton.vue index ac98544..895f604 100644 --- a/frontend/src/components/UserInfoButton.vue +++ b/frontend/src/components/UserInfoButton.vue @@ -10,6 +10,11 @@
{{ userInfo.email }}
+
+ + +
@@ -23,5 +28,10 @@ import { computed } from 'vue'; const authStore = useAuthStore(); const userInfo = computed(() => authStore.userInfo); - +const roles = computed(() => authStore.roles); + \ No newline at end of file diff --git a/frontend/src/pages/UserManagement.vue b/frontend/src/pages/UserManagement.vue index 73a7597..90b26eb 100644 --- a/frontend/src/pages/UserManagement.vue +++ b/frontend/src/pages/UserManagement.vue @@ -37,9 +37,7 @@
- +
diff --git a/frontend/src/stores/useAuthStore.ts b/frontend/src/stores/useAuthStore.ts index 1998c6d..0c3b28a 100644 --- a/frontend/src/stores/useAuthStore.ts +++ b/frontend/src/stores/useAuthStore.ts @@ -45,7 +45,7 @@ export const useAuthStore = defineStore('auth', { hasDomain(): boolean { return this.currentDomain.id !== undefined; }, - getRoles(): IRolesDisplay[] { + roles(): IRolesDisplay[] { return this.userInfo.roles; }, isSuperAdmin(): boolean {