feat: update user role display in perfil page to show associated sectors for improved clarity
This commit is contained in:
@@ -721,11 +721,13 @@
|
||||
</p>
|
||||
|
||||
<div class="flex flex-wrap items-center justify-center gap-3 md:justify-start">
|
||||
<div
|
||||
class="badge badge-lg border-0 bg-white/90 px-4 font-bold text-primary shadow-lg"
|
||||
>
|
||||
{currentUser.data?.role?.nome || 'Usuário'}
|
||||
</div>
|
||||
{#if setoresQuery?.data && setoresQuery.data.length > 0}
|
||||
<div
|
||||
class="badge badge-lg border-0 bg-white/90 px-4 font-bold text-primary shadow-lg"
|
||||
>
|
||||
{setoresQuery.data.map(s => s.nome).join(', ')}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{#if meuTime}
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user