use attachments presenter in application kanban card

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-27 19:24:15 +02:00
parent 7199b20f6c
commit 5fb8432820
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
4 changed files with 10 additions and 4 deletions
plugins
chunter-resources/src
recruit-resources

View File

@ -33,7 +33,7 @@
</Tooltip>
{/if} -->
{#if Object.keys(value.attachments).length > 0}
{#if value.attachments && Object.keys(value.attachments).length > 0}
<Tooltip label={'Attachments (' + Object.values(value.attachments).length + ')'} component={AttachmentPopup} props={{ files: value.attachments }}>
<div class="flex-row-center">
<IconAttachment size="small"/>&nbsp;{Object.keys(value.attachments).length}

View File

@ -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,

View File

@ -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"
}
}

View File

@ -22,6 +22,8 @@
import EditCandidate from './EditCandidate.svelte'
import EditApplication from './EditApplication.svelte'
import { AttachmentPresenter } from '@anticrm/chunter-resources'
export let object: WithLookup<Applicant>
export let draggable: boolean
@ -55,8 +57,9 @@
<Avatar size={'small'} />
<div class="flex-row-center">
<div class="flex-row-center caption-color tool">
<span class="icon"><IconAttachment size={'small'} /></span>
4
<!-- <span class="icon"><IconAttachment size={'small'} /></span>
4 -->
<AttachmentPresenter value={object} />
</div>
<div class="flex-row-center caption-color tool">
<span class="icon"><IconThread size={'small'} /></span>