mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Tracker assigned tooltip (#2028)
This commit is contained in:
parent
9b300d5c87
commit
e9c7f7dea6
@ -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}
|
||||
|
@ -47,7 +47,7 @@
|
||||
"SubIssuesList": "Подзадачи ({subIssues})",
|
||||
"OpenSubIssues": "Открыть подзадачи",
|
||||
"AddSubIssues": "{subIssues, plural, =1 {Добавить подзадачу} other {+ Добавить подзадачи}}",
|
||||
|
||||
"AssignedTo": "Назначен на {value}",
|
||||
"Title": "Заголовок",
|
||||
"Description": "Описание",
|
||||
"Status": "Статус",
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user