mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
UBERF-5630: fix inactive employee status in activity (#4782)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
7e8f153da5
commit
7875ca74ea
@ -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} />
|
||||
|
@ -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
|
||||
/>
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user