Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-26 13:20:46 +02:00
parent 604f594b3d
commit b11d3c46b6
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 6 additions and 10 deletions

View File

@ -25,10 +25,8 @@
</script>
{#if value}
{#if Object.keys(value.attachments).length === 1}
{#if Object.keys(value.attachments).length === 1}
<Link label={Object.values(value.attachments)[0].name} href={'#'} icon={IconFile} on:click={ () => { showPopup(PDFViewer, { file: Object.values(value.attachments)[0].file }, 'right') } }/>
{:else if Object.keys(value.attachments).length > 1}
{:else if Object.keys(value.attachments).length > 1}
<FileGroup files={value.attachments} />
{/if}
{/if}

View File

@ -23,8 +23,6 @@ export let value: Candidate
</script>
{#if value}
{#if value.applications && value.applications > 0}
{#if value.applications && value.applications > 0}
<IconFile size={'small'}/> {value.applications}
{/if}
{/if}