mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 04:37:44 +02:00
Merge pull request #330 from hcengineering/application-kanban
Fix application kanban card
This commit is contained in:
@@ -14,16 +14,16 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { UserInfo, Avatar } from '@anticrm/presentation'
|
||||
import { Avatar } from '@anticrm/presentation'
|
||||
import { showPopup, Label, IconThread, ActionIcon, IconMoreH, IconFile } from '@anticrm/ui'
|
||||
import type { WithLookup } from '@anticrm/core'
|
||||
import type { Applicant } from '@anticrm/recruit'
|
||||
|
||||
import EditCandidate from './EditCandidate.svelte'
|
||||
import EditApplication from './EditApplication.svelte'
|
||||
|
||||
import { AttachmentsPresenter } from '@anticrm/chunter-resources'
|
||||
import { formatName } from '@anticrm/contact'
|
||||
import ApplicationPresenter from './ApplicationPresenter.svelte'
|
||||
|
||||
export let object: WithLookup<Applicant>
|
||||
export let draggable: boolean
|
||||
@@ -31,10 +31,6 @@
|
||||
function showCandidate() {
|
||||
showPopup(EditCandidate, { _id: object.attachedTo }, 'full')
|
||||
}
|
||||
|
||||
function showApplication() {
|
||||
showPopup(EditApplication, { _id: object._id }, 'full')
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="card-container" {draggable} class:draggable on:dragstart on:dragend>
|
||||
@@ -43,16 +39,15 @@
|
||||
<Avatar avatar={object.$lookup?.attachedTo?.avatar} size={'medium'} />
|
||||
<div class="flex-col ml-2">
|
||||
<div class="fs-title over-underline" on:click={showCandidate}><Label label={formatName(object.$lookup?.attachedTo?.name)} /></div>
|
||||
<div class="small-text"><Label label={formatName(object.$lookup?.attachedTo?.title)} /></div>
|
||||
<div class="small-text">{object.$lookup?.attachedTo?.title ?? ''}</div>
|
||||
</div>
|
||||
</div>
|
||||
<ActionIcon label={'More...'} icon={IconMoreH} size={'small'} />
|
||||
</div>
|
||||
<div class="flex-between">
|
||||
<div class="flex-row-center">
|
||||
<div class="sm-tool-icon step-lr75" on:click={showApplication}>
|
||||
<span class="icon"><IconFile size={'small'} /></span>
|
||||
APP-542
|
||||
<div class="sm-tool-icon step-lr75">
|
||||
<ApplicationPresenter value={object} />
|
||||
</div>
|
||||
{#if object.attachments && Object.keys(object.attachments).length > 0}
|
||||
<div class="step-lr75"><AttachmentsPresenter value={object} /></div>
|
||||
|
||||
Reference in New Issue
Block a user