Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add role name to profile dropdown (#3148)

Tianzhou (天舟)da310231c9ad
diff --git a/frontend/src/components/ProfileDropdown.vue b/frontend/src/components/ProfileDropdown.vue
index c2619d36de..043e9fbc74 100644
--- a/frontend/src/components/ProfileDropdown.vue
+++ b/frontend/src/components/ProfileDropdown.vue
@@ -17,8 +17,13 @@
:to="`/u/${currentUser.id}`"
role="menuitem"
>
- <p class="text-sm text-main font-medium">
- {{ currentUser.name }}
+ <p class="text-sm flex justify-between">
+ <span class="text-main font-medium truncate">
+ {{ currentUser.name }}
+ </span>
+ <span class="text-control">
+ {{ $t(`common.role.${currentUser.role.toLowerCase()}`) }}
+ </span>
</p>
<p class="text-sm text-control truncate">
{{ currentUser.email }}