AttachmentPresenter -> AttachmentsPresenter

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-10-23 17:30:22 +02:00
parent 58649a7a7d
commit 63a79a88d7
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
11 changed files with 935 additions and 977 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -121,9 +121,9 @@ export function createModel (builder: Builder): void {
members: [] members: []
}) })
builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, { // builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, {
presenter: chunter.component.AttachmentPresenter // presenter: chunter.component.AttachmentPresenter
}) // })
} }
export default chunter export default chunter

View File

@ -23,7 +23,7 @@ import type { AnyComponent } from '@anticrm/ui'
export default mergeIds(chunterId, chunter, { export default mergeIds(chunterId, chunter, {
component: { component: {
AttachmentPresenter: '' as AnyComponent AttachmentsPresenter: '' as AnyComponent
}, },
string: { string: {
ApplicationLabelChunter: '' as IntlString ApplicationLabelChunter: '' as IntlString

View File

@ -125,7 +125,7 @@ export function createModel (builder: Builder): void {
'title', 'title',
'city', 'city',
{ presenter: recruit.component.ApplicationsPresenter, label: 'Apps' }, { presenter: recruit.component.ApplicationsPresenter, label: 'Apps' },
{ presenter: chunter.component.AttachmentPresenter, label: 'Files' }, { presenter: chunter.component.AttachmentsPresenter, label: 'Files' },
'modifiedOn', 'modifiedOn',
'channels' 'channels'
] ]

View File

@ -30,7 +30,7 @@
<table class="table-body"> <table class="table-body">
<tbody> <tbody>
{#each Object.values(files) as file} <!-- {#each Object.values(files) as file}
<tr class="tr-body"> <tr class="tr-body">
<td class="item flex-row-center" on:click={() => { <td class="item flex-row-center" on:click={() => {
closeTooltip() closeTooltip()
@ -44,7 +44,7 @@
</td> </td>
<td>10 / 8</td> <td>10 / 8</td>
</tr> </tr>
{/each} {/each} -->
</tbody> </tbody>
</table> </table>

View File

@ -16,15 +16,15 @@
import CreateChannel from './components/CreateChannel.svelte' import CreateChannel from './components/CreateChannel.svelte'
import ChannelView from './components/ChannelView.svelte' import ChannelView from './components/ChannelView.svelte'
import Activity from './components/Activity.svelte' import Activity from './components/Activity.svelte'
import AttachmentPresenter from './components/AttachmentPresenter.svelte' import AttachmentsPresenter from './components/AttachmentsPresenter.svelte'
export { AttachmentPresenter } export { AttachmentsPresenter }
export default async () => ({ export default async () => ({
component: { component: {
CreateChannel, CreateChannel,
ChannelView, ChannelView,
Activity, Activity,
AttachmentPresenter AttachmentsPresenter
} }
}) })

View File

@ -22,7 +22,7 @@
import EditCandidate from './EditCandidate.svelte' import EditCandidate from './EditCandidate.svelte'
import EditApplication from './EditApplication.svelte' import EditApplication from './EditApplication.svelte'
import { AttachmentPresenter } from '@anticrm/chunter-resources' import { AttachmentsPresenter } from '@anticrm/chunter-resources'
import { formatName } from '@anticrm/contact' import { formatName } from '@anticrm/contact'
export let object: WithLookup<Applicant> export let object: WithLookup<Applicant>
@ -60,7 +60,7 @@
<div class="flex-row-center caption-color tool"> <div class="flex-row-center caption-color tool">
<!-- <span class="icon"><IconAttachment size={'small'} /></span> <!-- <span class="icon"><IconAttachment size={'small'} /></span>
4 --> 4 -->
<AttachmentPresenter value={object} /> <AttachmentsPresenter value={object} />
</div> </div>
<div class="flex-row-center caption-color tool"> <div class="flex-row-center caption-color tool">
<span class="icon"><IconThread size={'small'} /></span> <span class="icon"><IconThread size={'small'} /></span>

View File

@ -22,7 +22,7 @@
import EditCandidate from './EditCandidate.svelte' import EditCandidate from './EditCandidate.svelte'
import EditApplication from './EditApplication.svelte' import EditApplication from './EditApplication.svelte'
import { AttachmentPresenter } from '@anticrm/chunter-resources' import { AttachmentsPresenter } from '@anticrm/chunter-resources'
import { formatName } from '@anticrm/contact' import { formatName } from '@anticrm/contact'
export let object: WithLookup<Applicant> export let object: WithLookup<Applicant>
@ -55,7 +55,7 @@
APP-542 APP-542
</div> </div>
{#if object.attachments && Object.keys(object.attachments).length > 0} {#if object.attachments && Object.keys(object.attachments).length > 0}
<div class="step-lr75"><AttachmentPresenter value={object} /></div> <div class="step-lr75"><AttachmentsPresenter value={object} /></div>
{/if} {/if}
<div class="sm-tool-icon step-lr75"> <div class="sm-tool-icon step-lr75">
<span class="icon"><IconThread size={'small'} /></span> <span class="icon"><IconThread size={'small'} /></span>

File diff suppressed because it is too large Load Diff