TSK-963: show avatar on comments (#2857)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-03-30 10:09:58 +05:00 committed by GitHub
parent 24a4fa3b29
commit 398182e3e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,6 @@
import { getValue, TxDisplayViewlet, updateViewlet } from '../utils' import { getValue, TxDisplayViewlet, updateViewlet } from '../utils'
import TxViewTx from './TxViewTx.svelte' import TxViewTx from './TxViewTx.svelte'
import Edit from './icons/Edit.svelte' import Edit from './icons/Edit.svelte'
import IconProfile from './icons/Profile.svelte'
export let tx: DisplayTx export let tx: DisplayTx
export let viewlets: Map<ActivityKey, TxViewlet> export let viewlets: Map<ActivityKey, TxViewlet>
@ -158,7 +157,7 @@
{#if showIcon} {#if showIcon}
{#if isComment} {#if isComment}
<div class="msgactivity-avatar"> <div class="msgactivity-avatar">
<Icon icon={IconProfile} size={'medium'} /> <Component is={contact.component.Avatar} props={{ avatar: employee.avatar, size: 'medium' }} />
</div> </div>
{:else} {:else}
<div class="msgactivity-icon"> <div class="msgactivity-icon">