diff --git a/plugins/chunter-resources/src/components/DirectIcon.svelte b/plugins/chunter-resources/src/components/DirectIcon.svelte
index 87ae03a0db..9fb94ef584 100644
--- a/plugins/chunter-resources/src/components/DirectIcon.svelte
+++ b/plugins/chunter-resources/src/components/DirectIcon.svelte
@@ -14,9 +14,9 @@
-->
{#if persons.length === 0}
@@ -65,13 +61,7 @@
{/if}
{#if persons.length === 1}
-
+
{/if}
{#if persons.length > 1 && size === 'medium'}
diff --git a/plugins/contact-resources/src/components/Avatar.svelte b/plugins/contact-resources/src/components/Avatar.svelte
index 50331af79a..6160eccf3e 100644
--- a/plugins/contact-resources/src/components/Avatar.svelte
+++ b/plugins/contact-resources/src/components/Avatar.svelte
@@ -31,8 +31,7 @@
-{#if showStatus && account}
+{#if showStatus && accounts.length > 0}
{:else}
import contact, { type Contact, type Employee } from '@hcengineering/contact'
- import core, { Account, type Ref, type WithLookup } from '@hcengineering/core'
+ import { type Ref, type WithLookup } from '@hcengineering/core'
import { Asset } from '@hcengineering/platform'
import { getClient } from '@hcengineering/presentation'
import { AnySvelteComponent, IconSize } from '@hcengineering/ui'
+
import { employeeByIdStore, personByIdStore } from '../utils'
import Avatar from './Avatar.svelte'
@@ -30,7 +31,6 @@
export let variant: 'circle' | 'roundedRect' | 'none' = 'roundedRect'
export let borderColor: number | undefined = undefined
export let showStatus: boolean = true
- export let account: Ref | undefined = undefined
$: empValue = $employeeByIdStore.get(_id as Ref) ?? $personByIdStore.get(_id)
@@ -47,4 +47,4 @@
}
-
+
diff --git a/plugins/contact-resources/src/components/PersonElement.svelte b/plugins/contact-resources/src/components/PersonElement.svelte
index 8fb3eb2f8a..b33f817d0a 100644
--- a/plugins/contact-resources/src/components/PersonElement.svelte
+++ b/plugins/contact-resources/src/components/PersonElement.svelte
@@ -13,14 +13,12 @@
// limitations under the License.
-->
{#if value}
@@ -64,7 +56,7 @@
class:mr-2={shouldShowName && !enlargedText}
class:mr-3={shouldShowName && enlargedText}
>
-
+
{/if}
{#if shouldShowName}
diff --git a/plugins/contact-resources/src/components/UserDetails.svelte b/plugins/contact-resources/src/components/UserDetails.svelte
index 8f9cdd2bde..f42879c34e 100644
--- a/plugins/contact-resources/src/components/UserDetails.svelte
+++ b/plugins/contact-resources/src/components/UserDetails.svelte
@@ -15,37 +15,23 @@
-
+
-
{getName(hierarchy, person)}
+
{getName(client.getHierarchy(), person)}
diff --git a/plugins/contact-resources/src/components/UserInfo.svelte b/plugins/contact-resources/src/components/UserInfo.svelte
index 5c11f5fbb5..a3cb0c555c 100644
--- a/plugins/contact-resources/src/components/UserInfo.svelte
+++ b/plugins/contact-resources/src/components/UserInfo.svelte
@@ -15,11 +15,10 @@
-
+
{#if subtitle}
{subtitle}
{/if}
{getName(client.getHierarchy(), value)}