Merge pull request #868 from hcengineering/fix-860

Add Done state to applications popup
This commit is contained in:
Andrey Sobolev 2022-01-26 16:02:17 +07:00 committed by GitHub
commit 777f2e4477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
-->
<script lang="ts">
import type { Class, Doc, Ref, Space } from '@anticrm/core'
import type { Doc, Ref } from '@anticrm/core'
import core from '@anticrm/core'
import task from '@anticrm/task'
import { CircleButton, IconAdd, Label, showPopup } from '@anticrm/ui'
@ -29,8 +29,9 @@
export let applications: number
const createApp = (ev: MouseEvent): void =>
const createApp = (ev: MouseEvent): void => {
showPopup(CreateApplication, { candidate: objectId, preserveCandidate: true }, ev.target as HTMLElement)
}
</script>
<div class="applications-container">

View File

@ -28,12 +28,13 @@
<Table
_class={recruit.class.Applicant}
config={['', '$lookup.space.name', '$lookup.state']}
config={['', '$lookup.space.name', '$lookup.state', '$lookup.doneState']}
options={
{
lookup: {
state: task.class.State,
space: core.class.Space
space: core.class.Space,
doneState: task.class.DoneState
}
}
}