add folder captions in Card

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-11 08:38:54 +02:00
parent ad714b4653
commit f23b0b4886
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
3 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,8 @@
export let spaceClass: Ref<Class<Space>>
export let space: Ref<Space>
export let spaceLabel: IntlString
export let spacePlaceholder: IntlString
export let label: IntlString
export let okLabel: IntlString
export let okAction: () => void
@ -44,7 +46,7 @@
<div class="content"><slot /></div>
<div class="flex-col pool" class:shrink={$$slots.contacts}>
<div class="separator" />
<SpaceSelect _class={spaceClass} label={'Title'} placeholder={'Select Project'} bind:value={space} />
<SpaceSelect _class={spaceClass} label={spaceLabel} placeholder={spacePlaceholder} bind:value={space} />
</div>
{#if $$slots.contacts}
<div class="flex-between contacts">

View File

@ -58,6 +58,8 @@
okAction={createApplication}
canSave={candidate !== undefined}
spaceClass={recruit.class.Vacancy}
spaceLabel={'Vacancy'}
spacePlaceholder={'Select vacancy'}
bind:space={_space}
on:close={() => { dispatch('close') }}>
<Grid column={1} rowGap={1.75}>

View File

@ -129,6 +129,8 @@
okAction={createCandidate}
canSave={object.firstName.length > 0 && object.lastName.length > 0}
spaceClass={recruit.class.Candidates}
spaceLabel={'Talent Pool'}
spacePlaceholder={'Select pool'}
bind:space={_space}
on:close={() => { dispatch('close') }}>