Skip to content

Commit

Permalink
UBERF-5630: fix inactive employee status in activity (#4782)
Browse files Browse the repository at this point in the history
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
  • Loading branch information
kristina-fefelova authored Feb 27, 2024
1 parent 7e8f153 commit 7875ca7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,6 +43,7 @@
{accent}
{defaultName}
{noUnderline}
{compact}
statusLabel={!active && shouldShowName ? contact.string.Inactive : undefined}
on:accent-color
/>
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
export let colorInherit: boolean = false
export let accent: boolean = false
export let maxWidth = ''
export let compact = false
const client = getClient()
Expand All @@ -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}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,6 +93,7 @@
{colorInherit}
{accent}
{maxWidth}
{compact}
on:accent-color
/>
{/if}

0 comments on commit 7875ca7

Please sign in to comment.