mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
AttachmentPresenter -> AttachmentsPresenter
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
58649a7a7d
commit
63a79a88d7
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
]
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
})
|
||||
|
@ -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>
|
@ -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
Loading…
Reference in New Issue
Block a user