UBER-749: fix no label for unassigned (#3603)

This commit is contained in:
Vyacheslav Tumanov 2023-08-18 06:29:57 +05:00 committed by GitHub
parent 4cb103f636
commit 14104a0984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -648,7 +648,7 @@ export function createModel (builder: Builder): void {
{
key: 'assignee',
presenter: tracker.component.AssigneeEditor,
displayProps: { key: 'assigee', fixed: 'right' },
displayProps: { key: 'assignee', fixed: 'right' },
props: { kind: 'list', shouldShowName: false, avatarSize: 'x-small' }
}
]

View File

@ -118,11 +118,6 @@
<span class="eContentPresenterLabel" class:colorInherit class:fs-bold={accent}>
<Label label={defaultName} />
</span>
{#if statusLabel}
<span class="eContentStatusLabel">
<Label label={statusLabel} />
</span>
{/if}
{/if}
</span>
{/if}

View File

@ -20,6 +20,7 @@
import PersonContent from './PersonContent.svelte'
import { getClient } from '@hcengineering/presentation'
import { Ref } from '@hcengineering/core'
import ui from '@hcengineering/ui'
export let value: Ref<Person> | Person | null | undefined
export let inline = false
@ -28,7 +29,7 @@
export let shouldShowAvatar = true
export let shouldShowName = true
export let shouldShowPlaceholder = false
export let defaultName: IntlString | undefined = undefined
export let defaultName: IntlString | undefined = ui.string.NotSelected
export let statusLabel: IntlString | undefined = undefined
export let tooltipLabels: PersonLabelTooltip | undefined = undefined
export let avatarSize: IconSize = 'x-small'

View File

@ -28,7 +28,7 @@
export let accent: boolean = false
export let shouldShowAvatar = true
export let shouldShowName = true
export let shouldShowPlaceholder = false
export let shouldShowPlaceholder = true
export let defaultName: IntlString | undefined = undefined
export let tooltipLabels: PersonLabelTooltip | undefined = undefined
export let avatarSize: 'inline' | 'tiny' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' = 'x-small'