diff --git a/plugins/contact-resources/src/components/CreateOrganization.svelte b/plugins/contact-resources/src/components/CreateOrganization.svelte index 3de312f32d..85a2a356ab 100644 --- a/plugins/contact-resources/src/components/CreateOrganization.svelte +++ b/plugins/contact-resources/src/components/CreateOrganization.svelte @@ -99,24 +99,22 @@ /> - - it.provider)} - /> + it.provider)} + /> - - + {#if matches.length > 0} diff --git a/plugins/lead-resources/src/components/CreateCustomer.svelte b/plugins/lead-resources/src/components/CreateCustomer.svelte index f0f1bbe9ac..df9468b379 100644 --- a/plugins/lead-resources/src/components/CreateCustomer.svelte +++ b/plugins/lead-resources/src/components/CreateCustomer.svelte @@ -18,7 +18,7 @@ import contact from '@hcengineering/contact-resources/src/plugin' import { AttachedData, Class, Data, Doc, generateId, MixinData, Ref, WithLookup } from '@hcengineering/core' import type { Customer } from '@hcengineering/lead' - import { Card, getClient } from '@hcengineering/presentation' + import { Card, getClient, InlineAttributeBar } from '@hcengineering/presentation' import { Button, createFocusManager, @@ -71,7 +71,7 @@ description: object.description } - const id = await client.createDoc(targetClass._id, contact.space.Contacts, candidate, customerId) + const id = await client.createDoc(targetClass._id, contact.space.Contacts, { ...candidate, ...object }, customerId) await client.createMixin( id as Ref, targetClass._id, @@ -234,6 +234,15 @@ editable highlighted={matchedChannels.map((it) => it.provider)} /> + {#if targetClass._id === contact.class.Organization} + + {/if} {#if matches.length > 0}