Add Done state to applications popup

Add Done state to applications popup

Closes #860

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2022-01-25 15:45:19 +07:00
parent e848480ef3
commit 53d7de2b3d
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2
2 changed files with 6 additions and 4 deletions

View File

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

View File

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