diff --git a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte index 94905e1e7f..5f314367c9 100644 --- a/plugins/chunter-resources/src/components/AttachmentPresenter.svelte +++ b/plugins/chunter-resources/src/components/AttachmentPresenter.svelte @@ -33,7 +33,7 @@ {/if} --> -{#if Object.keys(value.attachments).length > 0} +{#if value.attachments && Object.keys(value.attachments).length > 0}
 {Object.keys(value.attachments).length} diff --git a/plugins/chunter-resources/src/index.ts b/plugins/chunter-resources/src/index.ts index a31bc3355c..210af25672 100644 --- a/plugins/chunter-resources/src/index.ts +++ b/plugins/chunter-resources/src/index.ts @@ -18,6 +18,8 @@ import ChannelView from './components/ChannelView.svelte' import Activity from './components/Activity.svelte' import AttachmentPresenter from './components/AttachmentPresenter.svelte' +export { AttachmentPresenter } + export default async () => ({ component: { CreateChannel, diff --git a/plugins/recruit-resources/package.json b/plugins/recruit-resources/package.json index 9bf87cfcf1..5ff5c67f5c 100644 --- a/plugins/recruit-resources/package.json +++ b/plugins/recruit-resources/package.json @@ -29,6 +29,7 @@ "@anticrm/contact": "~0.6.0", "@anticrm/login": "~0.6.0", "deep-equal": "^2.0.5", - "@anticrm/panel": "~0.6.0" + "@anticrm/panel": "~0.6.0", + "@anticrm/chunter-resources": "~0.6.0" } } diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index 492d07b868..a821a81a3e 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -22,6 +22,8 @@ import EditCandidate from './EditCandidate.svelte' import EditApplication from './EditApplication.svelte' + import { AttachmentPresenter } from '@anticrm/chunter-resources' + export let object: WithLookup export let draggable: boolean @@ -55,8 +57,9 @@
- - 4 + +