TSK-861. Replacing a component (#2809)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2023-03-22 18:55:08 +03:00 committed by GitHub
parent 27a3264f9b
commit c6c6dfc856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@
--> -->
<script lang="ts"> <script lang="ts">
import contact, { EmployeeAccount } from '@hcengineering/contact' import contact, { EmployeeAccount } from '@hcengineering/contact'
import { employeeByIdStore, EmployeePresenter } from '@hcengineering/contact-resources' import { employeeByIdStore, EmployeeBox } from '@hcengineering/contact-resources'
import core, { ClassifierKind, Doc, Mixin, Ref } from '@hcengineering/core' import core, { ClassifierKind, Doc, Mixin, Ref } from '@hcengineering/core'
import { AttributeBarEditor, createQuery, getClient, KeyedAttribute } from '@hcengineering/presentation' import { AttributeBarEditor, createQuery, getClient, KeyedAttribute } from '@hcengineering/presentation'
@ -144,9 +144,15 @@
<span class="label"> <span class="label">
<Label label={core.string.CreatedBy} /> <Label label={core.string.CreatedBy} />
</span> </span>
<div class="min-w-0 w-full employee-button overflow-label"> <EmployeeBox
<EmployeePresenter value={employee} inline /> value={employee?._id}
</div> label={core.string.CreatedBy}
kind={'link'}
size={'large'}
width={'100%'}
showNavigate={false}
readonly
/>
<span class="label"> <span class="label">
<Label label={tracker.string.Assignee} /> <Label label={tracker.string.Assignee} />
@ -218,17 +224,4 @@
align-self: start; align-self: start;
margin-top: 0.385rem; margin-top: 0.385rem;
} }
.employee-button {
padding: 0 0.875rem;
border: 1px solid transparent;
display: flex;
min-height: 2rem;
&:hover {
border: 1px solid var(--button-border-hover);
color: var(--accent-color);
transition-duration: 0;
border-radius: 0.25rem;
}
}
</style> </style>