Add attachments block for companies and comment input for it's members (#5843)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-06-18 10:33:29 +05:00 committed by GitHub
parent 279b04f5b2
commit c526365e4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View File

@ -276,6 +276,11 @@ export function createModel (builder: Builder): void {
components: { input: chunter.component.ChatMessageInput } 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, { builder.mixin(contact.mixin.Employee, core.class.Class, view.mixin.ObjectFactory, {
component: contact.component.CreateEmployee component: contact.component.CreateEmployee
}) })

View File

@ -32,7 +32,7 @@
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
const inboxClient = getResource(notification.function.GetInboxNotificationsClient).then((res) => res()) 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 object: Organization | undefined = undefined
let lastId: Ref<Organization> | undefined = undefined let lastId: Ref<Organization> | undefined = undefined
@ -144,6 +144,7 @@
{object} {object}
key={{ key: 'description', attr: descriptionKey }} key={{ key: 'description', attr: descriptionKey }}
placeholder={core.string.Description} placeholder={core.string.Description}
enableAttachments={false}
on:saved={(evt) => { on:saved={(evt) => {
saved = evt.detail saved = evt.detail
}} }}