mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 20:13:00 +03:00
Fix AddAttachment control
Signed-off-by: Anna No <anna.no@xored.com>
This commit is contained in:
parent
b09466453d
commit
543e7616f8
@ -31,9 +31,7 @@
|
||||
|
||||
<div>
|
||||
{#if $$slots.control}
|
||||
<div on:click={openFile}>
|
||||
<slot name="control"/>
|
||||
</div>
|
||||
<slot name="control" click={openFile}/>
|
||||
{:else}
|
||||
<CircleButton
|
||||
icon={IconAdd}
|
||||
|
@ -77,6 +77,5 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</AttachmentDroppable>
|
||||
|
||||
|
@ -54,7 +54,9 @@
|
||||
{/each}
|
||||
<div class="mt-2">
|
||||
<AddAttachment bind:inputFile objectClass={value._class} objectId={value._id} space={value.space}>
|
||||
<Button label={board.string.AddAttachment} kind="no-border" slot="control" />
|
||||
<svelte:fragment slot="control" let:click>
|
||||
<Button label={board.string.AddAttachment} kind="no-border" on:click={click}/>
|
||||
</svelte:fragment>
|
||||
</AddAttachment>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user