Fix assignee / lead presenters (#2226)

Signed-off-by: Sergei Ogorelkov <sergei.ogorelkov@xored.com>
This commit is contained in:
Sergei Ogorelkov 2022-07-07 20:27:27 +07:00 committed by GitHub
parent 6429908b73
commit ef1673128e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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">

View File

@ -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">

View File

@ -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>