Skip to content

Commit

Permalink
pkp#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 8, 2024
1 parent ffc61d4 commit c3916ab
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 c3916ab

Please sign in to comment.