mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-05 15:24:22 +00:00
Fix assignee / lead presenters (#2226)
Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
parent
6429908b73
commit
ef1673128e
@ -15,7 +15,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import contact, { Employee } from '@anticrm/contact'
|
import contact, { Employee } from '@anticrm/contact'
|
||||||
import { Class, Doc, Ref } from '@anticrm/core'
|
import { Class, Doc, Ref } from '@anticrm/core'
|
||||||
import { Issue, Team } from '@anticrm/tracker'
|
import { Issue } from '@anticrm/tracker'
|
||||||
import { UsersPopup, getClient } from '@anticrm/presentation'
|
import { UsersPopup, getClient } from '@anticrm/presentation'
|
||||||
import { AttributeModel } from '@anticrm/view'
|
import { AttributeModel } from '@anticrm/view'
|
||||||
import { eventToHTMLElement, showPopup } from '@anticrm/ui'
|
import { eventToHTMLElement, showPopup } from '@anticrm/ui'
|
||||||
@ -26,7 +26,6 @@
|
|||||||
export let value: Employee | null | undefined
|
export let value: Employee | null | undefined
|
||||||
export let issueId: Ref<Issue>
|
export let issueId: Ref<Issue>
|
||||||
export let defaultClass: Ref<Class<Doc>> | undefined = undefined
|
export let defaultClass: Ref<Class<Doc>> | undefined = undefined
|
||||||
export let currentSpace: Ref<Team> | undefined = undefined
|
|
||||||
export let isEditable: boolean = true
|
export let isEditable: boolean = true
|
||||||
export let shouldShowLabel: boolean = false
|
export let shouldShowLabel: boolean = false
|
||||||
export let defaultName: IntlString | undefined = undefined
|
export let defaultName: IntlString | undefined = undefined
|
||||||
@ -52,7 +51,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentIssue = await client.findOne(tracker.class.Issue, { space: currentSpace, _id: issueId })
|
const currentIssue = await client.findOne(tracker.class.Issue, { _id: issueId })
|
||||||
|
|
||||||
if (currentIssue === undefined) {
|
if (currentIssue === undefined) {
|
||||||
return
|
return
|
||||||
|
@ -169,7 +169,6 @@
|
|||||||
value={issue.$lookup?.assignee}
|
value={issue.$lookup?.assignee}
|
||||||
defaultClass={contact.class.Employee}
|
defaultClass={contact.class.Employee}
|
||||||
issueId={issue._id}
|
issueId={issue._id}
|
||||||
{currentSpace}
|
|
||||||
isEditable={true}
|
isEditable={true}
|
||||||
/>
|
/>
|
||||||
<div class="flex-center mt-2">
|
<div class="flex-center mt-2">
|
||||||
|
@ -242,7 +242,6 @@
|
|||||||
value={issue.$lookup?.assignee}
|
value={issue.$lookup?.assignee}
|
||||||
defaultClass={contact.class.Employee}
|
defaultClass={contact.class.Employee}
|
||||||
issueId={issue._id}
|
issueId={issue._id}
|
||||||
{currentSpace}
|
|
||||||
isEditable={true}
|
isEditable={true}
|
||||||
/>
|
/>
|
||||||
<div class="flex-center mt-2">
|
<div class="flex-center mt-2">
|
||||||
|
@ -148,7 +148,7 @@
|
|||||||
<svelte:component
|
<svelte:component
|
||||||
this={attributeModel.presenter}
|
this={attributeModel.presenter}
|
||||||
value={getObjectValue(attributeModel.key, docObject) ?? ''}
|
value={getObjectValue(attributeModel.key, docObject) ?? ''}
|
||||||
issueId={docObject._id}
|
projectId={docObject._id}
|
||||||
{...attributeModel.props}
|
{...attributeModel.props}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user