[go: nahoru, domu]

Skip to content

Commit

Permalink
Add attachments block for companies and comment input for it's members (
Browse files Browse the repository at this point in the history
hcengineering#5843)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
  • Loading branch information
ThetaDR committed Jun 18, 2024
1 parent 279b04f commit c526365
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions models/contact/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Organization> | undefined = undefined
Expand Down Expand Up @@ -144,6 +144,7 @@
{object}
key={{ key: 'description', attr: descriptionKey }}
placeholder={core.string.Description}
enableAttachments={false}
on:saved={(evt) => {
saved = evt.detail
}}
Expand Down

0 comments on commit c526365

Please sign in to comment.