From 2ea248a270b4f3755dfa7442318fc4440cbd5553 Mon Sep 17 00:00:00 2001 From: budaeva <47611627+budaeva@users.noreply.github.com> Date: Tue, 21 Jun 2022 20:14:17 +0700 Subject: [PATCH] remove employee avatar from message viewer (#2119) Signed-off-by: budaeva --- packages/presentation/src/components/message/Nodes.svelte | 5 ++++- .../src/components/EmployeePresenter.svelte | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/presentation/src/components/message/Nodes.svelte b/packages/presentation/src/components/message/Nodes.svelte index f367075c19..75b5655a28 100644 --- a/packages/presentation/src/components/message/Nodes.svelte +++ b/packages/presentation/src/components/message/Nodes.svelte @@ -78,7 +78,10 @@ props={{ objectId: node.getAttribute('data-id'), title: node.getAttribute('data-label'), - _class: node.getAttribute('data-objectclass') + _class: node.getAttribute('data-objectclass'), + props: { + shouldShowAvatar: false + } }} /> {:else} diff --git a/plugins/contact-resources/src/components/EmployeePresenter.svelte b/plugins/contact-resources/src/components/EmployeePresenter.svelte index 3935a6c7da..3802fef773 100644 --- a/plugins/contact-resources/src/components/EmployeePresenter.svelte +++ b/plugins/contact-resources/src/components/EmployeePresenter.svelte @@ -34,8 +34,8 @@ $: handlePersonEdit = onEmployeeEdit ?? onEdit -
-
+
+
{#if value?.$lookup?.statuses?.length} -
+
{/if}