mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
cleanup
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
604f594b3d
commit
b11d3c46b6
@ -25,10 +25,8 @@
|
||||
|
||||
</script>
|
||||
|
||||
{#if value}
|
||||
{#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}
|
||||
<FileGroup files={value.attachments} />
|
||||
{/if}
|
||||
{#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}
|
||||
<FileGroup files={value.attachments} />
|
||||
{/if}
|
||||
|
@ -23,8 +23,6 @@ export let value: Candidate
|
||||
|
||||
</script>
|
||||
|
||||
{#if value}
|
||||
{#if value.applications && value.applications > 0}
|
||||
<IconFile size={'small'}/> {value.applications}
|
||||
{/if}
|
||||
{#if value.applications && value.applications > 0}
|
||||
<IconFile size={'small'}/> {value.applications}
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user