mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-16 05:13:06 +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="flex-col ml-2 w-full clear-mins message-content">
|
||||||
<div class="header clear-mins">
|
<div class="header clear-mins">
|
||||||
{#if person}
|
{#if person}
|
||||||
<EmployeePresenter value={person} shouldShowAvatar={false} />
|
<EmployeePresenter value={person} shouldShowAvatar={false} compact />
|
||||||
{:else}
|
{:else}
|
||||||
<div class="strong">
|
<div class="strong">
|
||||||
<Label label={core.string.System} />
|
<Label label={core.string.System} />
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
export let defaultName: IntlString | undefined = ui.string.NotSelected
|
export let defaultName: IntlString | undefined = ui.string.NotSelected
|
||||||
// export let element: HTMLElement | undefined = undefined
|
// export let element: HTMLElement | undefined = undefined
|
||||||
export let noUnderline: boolean = false
|
export let noUnderline: boolean = false
|
||||||
|
export let compact = false
|
||||||
|
|
||||||
$: employeeValue = typeof value === 'string' ? $personByIdStore.get(value) : value
|
$: employeeValue = typeof value === 'string' ? $personByIdStore.get(value) : value
|
||||||
|
|
||||||
@ -42,6 +43,7 @@
|
|||||||
{accent}
|
{accent}
|
||||||
{defaultName}
|
{defaultName}
|
||||||
{noUnderline}
|
{noUnderline}
|
||||||
|
{compact}
|
||||||
statusLabel={!active && shouldShowName ? contact.string.Inactive : undefined}
|
statusLabel={!active && shouldShowName ? contact.string.Inactive : undefined}
|
||||||
on:accent-color
|
on:accent-color
|
||||||
/>
|
/>
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
export let colorInherit: boolean = false
|
export let colorInherit: boolean = false
|
||||||
export let accent: boolean = false
|
export let accent: boolean = false
|
||||||
export let maxWidth = ''
|
export let maxWidth = ''
|
||||||
|
export let compact = false
|
||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
@ -71,7 +72,7 @@
|
|||||||
|
|
||||||
{#if value}
|
{#if value}
|
||||||
{#if statusLabel}
|
{#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
|
<PersonElement
|
||||||
{value}
|
{value}
|
||||||
{name}
|
{name}
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
export let colorInherit: boolean = false
|
export let colorInherit: boolean = false
|
||||||
export let accent: boolean = false
|
export let accent: boolean = false
|
||||||
export let maxWidth = ''
|
export let maxWidth = ''
|
||||||
|
export let compact = false
|
||||||
|
|
||||||
const client = getClient()
|
const client = getClient()
|
||||||
$: personValue = typeof value === 'string' ? $personByIdStore.get(value) : value
|
$: personValue = typeof value === 'string' ? $personByIdStore.get(value) : value
|
||||||
@ -92,6 +93,7 @@
|
|||||||
{colorInherit}
|
{colorInherit}
|
||||||
{accent}
|
{accent}
|
||||||
{maxWidth}
|
{maxWidth}
|
||||||
|
{compact}
|
||||||
on:accent-color
|
on:accent-color
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user