mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 07:46:24 +00: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: []
|
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
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
]
|
]
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -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>
|
@ -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
Loading…
Reference in New Issue
Block a user