mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-19 11:14:06 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -17,6 +17,7 @@ export interface Company {
|
||||
address?: Address
|
||||
owner?: User
|
||||
roles: Role[]
|
||||
user_role?: string | null
|
||||
}
|
||||
|
||||
export interface CompanySetting {
|
||||
|
||||
Reference in New Issue
Block a user