Skip to content

Commit

Permalink
#9626 Add name data when using InitialsAvatar component
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Nov 17, 2024
1 parent befaa2f commit e89f834
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions templates/layouts/backend.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,20 @@
</div>
<dropdown class="app__headerAction app__userNav">
<template #button>
<initials-avatar :is-secondary="true"></initials-avatar>
<initials-avatar
:is-secondary="true"
given-name="{$currentUser->getData('givenName')}"
family-name="{$currentUser->getData('familyName')}"
{if $isUserLoggedInAs}
:is-disabled="true"
{/if}
></initials-avatar>
{if $isUserLoggedInAs}
<icon icon="User" class="absolute right-2 top-2 text-on-dark bg-negative rounded-full h-5 w-5"></icon>
<initials-avatar
class="absolute right-2 top-2 rounded-full h-5 w-5"
:is-warnable="true"
:shrink="true"
></initials-avatar>
{/if}
<span class="-screenReader">{$currentUser->getData('userName')}</span>
</template>
Expand Down

0 comments on commit e89f834

Please sign in to comment.