mirror of
https://github.com/hcengineering/platform.git
synced 2025-03-15 02:23:12 +00:00
Fix participant name format (#8141)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
3bac42ac6e
commit
0c9e58f85b
@ -16,6 +16,7 @@
|
|||||||
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
||||||
import { ParticipantInfo } from '@hcengineering/love'
|
import { ParticipantInfo } from '@hcengineering/love'
|
||||||
import { Scroller } from '@hcengineering/ui'
|
import { Scroller } from '@hcengineering/ui'
|
||||||
|
import { formatName } from '@hcengineering/contact'
|
||||||
|
|
||||||
export let items: (ParticipantInfo & { onclick?: (e: MouseEvent) => void })[]
|
export let items: (ParticipantInfo & { onclick?: (e: MouseEvent) => void })[]
|
||||||
</script>
|
</script>
|
||||||
@ -36,7 +37,7 @@
|
|||||||
person={$personByIdStore.get(participant.person)}
|
person={$personByIdStore.get(participant.person)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{participant.name}
|
{formatName(participant.name)}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
</Scroller>
|
</Scroller>
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
import { Avatar, personByIdStore } from '@hcengineering/contact-resources'
|
||||||
import { tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui'
|
import { tooltip, deviceOptionsStore as deviceInfo, checkAdaptiveMatching } from '@hcengineering/ui'
|
||||||
import { ParticipantInfo } from '@hcengineering/love'
|
import { ParticipantInfo } from '@hcengineering/love'
|
||||||
|
import { formatName } from '@hcengineering/contact'
|
||||||
import ParticipantsList from './ParticipantsList.svelte'
|
import ParticipantsList from './ParticipantsList.svelte'
|
||||||
|
|
||||||
export let label: string
|
export let label: string
|
||||||
@ -61,7 +62,7 @@
|
|||||||
<div class="hulyStatusBarButton-icons">
|
<div class="hulyStatusBarButton-icons">
|
||||||
{#each participants as participant (participant._id)}
|
{#each participants as participant (participant._id)}
|
||||||
<div
|
<div
|
||||||
use:tooltip={{ label: getEmbeddedLabel(participant.name), direction: 'bottom' }}
|
use:tooltip={{ label: getEmbeddedLabel(formatName(participant.name)), direction: 'bottom' }}
|
||||||
on:click={participant.onclick}
|
on:click={participant.onclick}
|
||||||
>
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
|
Loading…
Reference in New Issue
Block a user