mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 07:10:02 +00:00
use attachments presenter in application kanban card
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
7199b20f6c
commit
5fb8432820
plugins
chunter-resources/src
recruit-resources
@ -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"/> {Object.keys(value.attachments).length}
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user