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
dev
storage/src
tool/src
models
chunter/src
recruit/src
plugins
chunter-resources/src
recruit-resources/src/components
server/workspace/src

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: []
})
builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, {
presenter: chunter.component.AttachmentPresenter
})
// builder.mixin(chunter.class.Attachment, core.class.Class, view.mixin.AttributePresenter, {
// presenter: chunter.component.AttachmentPresenter
// })
}
export default chunter

View File

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

View File

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

View File

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

View File

@ -16,15 +16,15 @@
import CreateChannel from './components/CreateChannel.svelte'
import ChannelView from './components/ChannelView.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 () => ({
component: {
CreateChannel,
ChannelView,
Activity,
AttachmentPresenter
AttachmentsPresenter
}
})

View File

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

View File

@ -22,7 +22,7 @@
import EditCandidate from './EditCandidate.svelte'
import EditApplication from './EditApplication.svelte'
import { AttachmentPresenter } from '@anticrm/chunter-resources'
import { AttachmentsPresenter } from '@anticrm/chunter-resources'
import { formatName } from '@anticrm/contact'
export let object: WithLookup<Applicant>
@ -55,7 +55,7 @@
APP-542
</div>
{#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}
<div class="sm-tool-icon step-lr75">
<span class="icon"><IconThread size={'small'} /></span>

File diff suppressed because it is too large Load Diff