Show user role in company switcher

CompanyResource now includes user_role — the authenticated user's
Bouncer role title scoped to that company (e.g. "Owner"). Displayed
as a subtitle under each company name in the switcher dropdown.
This commit is contained in:
Darko Gjorgjijoski
2026-04-06 23:03:29 +02:00
parent 9ca998e64a
commit 8508e7e1b8
3 changed files with 23 additions and 0 deletions

View File

@@ -109,6 +109,9 @@
</span>
<div class="flex flex-col">
<span class="text-sm">{{ company.name }}</span>
<span v-if="company.user_role" class="text-xs text-subtle">
{{ company.user_role }}
</span>
</div>
</div>
</div>

View File

@@ -17,6 +17,7 @@ export interface Company {
address?: Address
owner?: User
roles: Role[]
user_role?: string | null
}
export interface CompanySetting {