mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-28 19:08:01 +00:00
Show initials in navigator if user doesnt have avatar (#5687)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
4c02a5eb2c
commit
b46b773558
@ -109,7 +109,6 @@
|
||||
)
|
||||
} else {
|
||||
;({ url, srcSet, color } = (await getResource(avatarProvider.getUrl))(avatar, displayName, width))
|
||||
console.log(url, srcSet, color)
|
||||
}
|
||||
} else if (name != null) {
|
||||
color = getPlatformAvatarColorForTextDef(name, $themeStore.dark)
|
||||
|
@ -708,7 +708,10 @@
|
||||
class="cursor-pointer"
|
||||
on:click|stopPropagation={() => showPopup(AccountPopup, {}, popupPosition)}
|
||||
>
|
||||
<Component is={contact.component.Avatar} props={{ person, size: 'small', account: account._id }} />
|
||||
<Component
|
||||
is={contact.component.Avatar}
|
||||
props={{ person, name: person?.name, size: 'small', account: account._id }}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user