Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-01 10:10:17 +02:00
parent aab349b9b5
commit b43737c8a9
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 3 additions and 2 deletions

View File

@ -79,4 +79,4 @@
</script>
<DialogHeader {space} {object} {newValue} {resume} create={true} on:save={createCandidate}/>
<DialogHeader {space} {object} {newValue} {resume} create={true} on:save={createCandidate} focus/>

View File

@ -37,6 +37,7 @@
export let space: Ref<Space>
export let object: Candidate
export let newValue: Candidate
export let focus = false
export let resume: {
id: Ref<Doc> | undefined
@ -104,7 +105,7 @@
<div class="avatar" on:click|stopPropagation={() => showModal(AvatarEditor, { label: 'Profile photo' })}><User /></div>
<div class="flex-col">
<div class="name">
<EditBox placeholder="John" bind:value={newValue.firstName} on:input={isChanged}/>
<EditBox placeholder="John" bind:value={newValue.firstName} on:input={isChanged} {focus}/>
<EditBox placeholder="Appleseed" bind:value={newValue.lastName} on:input={isChanged}/>
</div>
<div class="title"><EditBox placeholder="Location" bind:value={newValue.city} on:input={isChanged}/></div>