mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
XML Import related fixes (#724)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
d115f4c5f8
commit
b37c802aa7
@ -260,7 +260,7 @@ async function createCandidate (_name: string, pos: number, len: number, c: any,
|
||||
const { sourceFields, telegram, linkedin, github } = parseSocials(c)
|
||||
|
||||
const data: Data<Candidate> = {
|
||||
name: names.slice(1).join(' ') + ', ' + names[0],
|
||||
name: names.slice(1).join(' ') + ',' + names[0],
|
||||
city: get(c, _.city) ?? '',
|
||||
title: [
|
||||
get(c, _.vacancyKind),
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
</script>
|
||||
|
||||
{#if value.attachments && value.attachments > 0}
|
||||
{#if value && value.attachments && value.attachments > 0}
|
||||
<Tooltip label={'Attachments (' + value.attachments + ')'} component={AttachmentPopup} props={{ objectId: value._id }}>
|
||||
<div class="sm-tool-icon">
|
||||
<span class="icon"><IconAttachment size="small"/></span> {value.attachments}
|
||||
|
@ -23,7 +23,7 @@
|
||||
export let value: Doc & { comments?: number }
|
||||
</script>
|
||||
|
||||
{#if value.comments && value.comments > 0}
|
||||
{#if value && value.comments && value.comments > 0}
|
||||
<Tooltip label={chunter.string.Comments} component={CommentPopup} props={{ objectId: value._id }}>
|
||||
<div class="sm-tool-icon">
|
||||
<span class="icon"><IconThread size="small"/></span> {value.comments}
|
||||
|
@ -30,6 +30,8 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="sm-tool-icon" on:click={show}>
|
||||
<span class="icon"><IconFile size={'small'} /></span> {shortLabel}-{value.number}
|
||||
</div>
|
||||
{#if value && shortLabel}
|
||||
<div class="sm-tool-icon" on:click={show}>
|
||||
<span class="icon"><IconFile size={'small'} /></span> {shortLabel}-{value.number}
|
||||
</div>
|
||||
{/if}
|
||||
|
@ -21,9 +21,11 @@
|
||||
|
||||
</script>
|
||||
|
||||
<div class="overflow-label state-container" style="background-color: {value.color}">
|
||||
{value.title}
|
||||
</div>
|
||||
{#if value}
|
||||
<div class="overflow-label state-container" style="background-color: {value.color}">
|
||||
{value.title}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style lang="scss">
|
||||
.state-container {
|
||||
|
@ -43,7 +43,7 @@
|
||||
(result) => {
|
||||
objects = result
|
||||
},
|
||||
{ sort: { [sortKey]: sortOrder }, ...options, limit: 500 }
|
||||
{ sort: { [sortKey]: sortOrder }, ...options, limit: 200 }
|
||||
)
|
||||
|
||||
function getValue (doc: Doc, key: string): any {
|
||||
|
Loading…
Reference in New Issue
Block a user