UBERF-5630: fix inactive employee status in activity (#4782)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina 2024-02-27 12:30:45 +04:00 committed by GitHub
parent 7e8f153da5
commit 7875ca74ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 2 deletions

View File

@ -151,7 +151,7 @@
<div class="flex-col ml-2 w-full clear-mins message-content">
<div class="header clear-mins">
{#if person}
<EmployeePresenter value={person} shouldShowAvatar={false} />
<EmployeePresenter value={person} shouldShowAvatar={false} compact />
{:else}
<div class="strong">
<Label label={core.string.System} />

View File

@ -21,6 +21,7 @@
export let defaultName: IntlString | undefined = ui.string.NotSelected
// export let element: HTMLElement | undefined = undefined
export let noUnderline: boolean = false
export let compact = false
$: employeeValue = typeof value === 'string' ? $personByIdStore.get(value) : value
@ -42,6 +43,7 @@
{accent}
{defaultName}
{noUnderline}
{compact}
statusLabel={!active && shouldShowName ? contact.string.Inactive : undefined}
on:accent-color
/>

View File

@ -46,6 +46,7 @@
export let colorInherit: boolean = false
export let accent: boolean = false
export let maxWidth = ''
export let compact = false
const client = getClient()
@ -71,7 +72,7 @@
{#if value}
{#if statusLabel}
<div class="inline-flex items-center clear-mins w-full">
<div class="inline-flex items-center clear-mins" class:w-full={!compact}>
<PersonElement
{value}
{name}

View File

@ -39,6 +39,7 @@
export let colorInherit: boolean = false
export let accent: boolean = false
export let maxWidth = ''
export let compact = false
const client = getClient()
$: personValue = typeof value === 'string' ? $personByIdStore.get(value) : value
@ -92,6 +93,7 @@
{colorInherit}
{accent}
{maxWidth}
{compact}
on:accent-color
/>
{/if}