Tracker assigned tooltip (#2028)

This commit is contained in:
Denis Bykhov 2022-06-07 17:29:35 +06:00 committed by GitHub
parent 9b300d5c87
commit e9c7f7dea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -5,8 +5,10 @@
import { showPopup } from '@anticrm/ui'
import EmployeePreviewPopup from './EmployeePreviewPopup.svelte'
import { WithLookup } from '@anticrm/core'
import { IntlString } from '@anticrm/platform'
export let value: WithLookup<Employee> | null | undefined
export let tooltipLabels: { personLabel: IntlString; placeholderLabel?: IntlString } | undefined = undefined
export let shouldShowAvatar: boolean = true
export let shouldShowName: boolean = true
export let onEmployeeEdit: ((event: MouseEvent) => void) | undefined = undefined
@ -32,6 +34,7 @@
<div class="over-underline" class:pr-2={shouldShowName}>
<PersonPresenter
{value}
{tooltipLabels}
onEdit={handlePersonEdit}
{shouldShowAvatar}
{shouldShowName}

View File

@ -47,7 +47,7 @@
"SubIssuesList": "Подзадачи ({subIssues})",
"OpenSubIssues": "Открыть подзадачи",
"AddSubIssues": "{subIssues, plural, =1 {Добавить подзадачу} other {+ Добавить подзадачи}}",
"AssignedTo": "Назначен на {value}",
"Title": "Заголовок",
"Description": "Описание",
"Status": "Статус",

View File

@ -100,6 +100,6 @@
shouldShowPlaceholder={true}
shouldShowName={shouldShowLabel}
onEmployeeEdit={handleAssigneeEditorOpened}
tooltipLabels={{ personLabel: tracker.string.AssignedTo, placeholderLabel: tracker.string.AssignTo }}
tooltipLabels={{ personLabel: tracker.string.AssignedTo, placeholderLabel: tracker.string.Unassigned }}
/>
{/if}