mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +03:00
391 397 fix (#431)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
c72376987e
commit
6b7a4b2474
@ -75,6 +75,9 @@ export class TApplicant extends TDocWithState implements Applicant {
|
||||
@Prop(TypeString(), 'Attachments' as IntlString)
|
||||
attachments?: number
|
||||
|
||||
@Prop(TypeString(), 'Comments' as IntlString)
|
||||
comments?: number
|
||||
|
||||
@Prop(TypeString(), 'Assigned recruiter' as IntlString)
|
||||
employee!: Ref<Employee>
|
||||
}
|
||||
@ -163,6 +166,8 @@ export function createModel (builder: Builder): void {
|
||||
'$lookup.state',
|
||||
'$lookup.attachedTo.city',
|
||||
{ presenter: chunter.component.AttachmentsPresenter, label: 'Files' },
|
||||
{ presenter: chunter.component.CommentsPresenter, label: 'Comments' },
|
||||
'modifiedOn',
|
||||
'$lookup.attachedTo.channels']
|
||||
})
|
||||
|
||||
|
@ -22,7 +22,7 @@ import CommentsPresenter from './components/CommentsPresenter.svelte'
|
||||
import TxCommentCreate from './components/activity/TxCommentCreate.svelte'
|
||||
import TxAttachmentCreate from './components/activity/TxAttachmentCreate.svelte'
|
||||
|
||||
export { AttachmentsPresenter }
|
||||
export { AttachmentsPresenter, CommentsPresenter }
|
||||
|
||||
export default async () => ({
|
||||
component: {
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
import EditCandidate from './EditCandidate.svelte'
|
||||
|
||||
import { AttachmentsPresenter } from '@anticrm/chunter-resources'
|
||||
import { AttachmentsPresenter, CommentsPresenter } from '@anticrm/chunter-resources'
|
||||
import { formatName } from '@anticrm/contact'
|
||||
import ApplicationPresenter from './ApplicationPresenter.svelte'
|
||||
|
||||
@ -49,13 +49,12 @@
|
||||
<div class="sm-tool-icon step-lr75">
|
||||
<ApplicationPresenter value={object} />
|
||||
</div>
|
||||
{#if object.attachments && Object.keys(object.attachments).length > 0}
|
||||
{#if object.attachments ?? 0 > 0}
|
||||
<div class="step-lr75"><AttachmentsPresenter value={object} /></div>
|
||||
{/if}
|
||||
<div class="sm-tool-icon step-lr75">
|
||||
<span class="icon"><IconThread size={'small'} /></span>
|
||||
5
|
||||
</div>
|
||||
{#if object.comments ?? 0 > 0}
|
||||
<div class="step-lr75"><CommentsPresenter value={object} /></div>
|
||||
{/if}
|
||||
</div>
|
||||
<Avatar size={'x-small'} />
|
||||
</div>
|
||||
|
@ -46,6 +46,7 @@ export interface Candidate extends Person {
|
||||
*/
|
||||
export interface Applicant extends DocWithState, AttachedDoc {
|
||||
attachments?: number
|
||||
comments?: number
|
||||
employee: Ref<Employee>
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@
|
||||
<thead>
|
||||
<tr class="tr-head">
|
||||
{#each model as attribute}
|
||||
<th class="sortable" class:sorted={attribute.key === sortKey} on:click={() => changeSorting(attribute.key)}>
|
||||
<th class:sortable={attribute.key} class:sorted={attribute.key === sortKey} on:click={() => changeSorting(attribute.key)}>
|
||||
<div class="flex-row-center">
|
||||
<Label label = {attribute.label}/>
|
||||
{#if attribute.key === sortKey}
|
||||
|
@ -89,7 +89,7 @@
|
||||
</div>
|
||||
</th>
|
||||
{/if}
|
||||
<th class="sortable" class:sorted={attribute.key === sortKey} on:click={() => changeSorting(attribute.key)}>
|
||||
<th class:sortable={attribute.key} class:sorted={attribute.key === sortKey} on:click={() => changeSorting(attribute.key)}>
|
||||
<div class="flex-row-center">
|
||||
<Label label = {attribute.label}/>
|
||||
{#if attribute.key === sortKey}
|
||||
|
Loading…
Reference in New Issue
Block a user