From c526365e4d8ac51de9f2f2d683839b47dff293d1 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Tue, 18 Jun 2024 10:33:29 +0500 Subject: [PATCH] Add attachments block for companies and comment input for it's members (#5843) Signed-off-by: Vyacheslav Tumanov --- models/contact/src/index.ts | 5 +++++ .../src/components/EditOrganizationPanel.svelte | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/models/contact/src/index.ts b/models/contact/src/index.ts index 2f573809f2..6939c84cf0 100644 --- a/models/contact/src/index.ts +++ b/models/contact/src/index.ts @@ -276,6 +276,11 @@ export function createModel (builder: Builder): void { components: { input: chunter.component.ChatMessageInput } }) + builder.createDoc(activity.class.ActivityExtension, core.space.Model, { + ofClass: contact.class.Member, + components: { input: chunter.component.ChatMessageInput } + }) + builder.mixin(contact.mixin.Employee, core.class.Class, view.mixin.ObjectFactory, { component: contact.component.CreateEmployee }) diff --git a/plugins/contact-resources/src/components/EditOrganizationPanel.svelte b/plugins/contact-resources/src/components/EditOrganizationPanel.svelte index 1fd9e431be..a422138aee 100644 --- a/plugins/contact-resources/src/components/EditOrganizationPanel.svelte +++ b/plugins/contact-resources/src/components/EditOrganizationPanel.svelte @@ -32,7 +32,7 @@ const dispatch = createEventDispatcher() const inboxClient = getResource(notification.function.GetInboxNotificationsClient).then((res) => res()) - const ignoreKeys = ['comments', 'name', 'channels', 'description', 'attachments'] + const ignoreKeys = ['comments', 'name', 'channels', 'description'] let object: Organization | undefined = undefined let lastId: Ref | undefined = undefined @@ -144,6 +144,7 @@ {object} key={{ key: 'description', attr: descriptionKey }} placeholder={core.string.Description} + enableAttachments={false} on:saved={(evt) => { saved = evt.detail }}