mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
TSK-433 Allow to send attachments without text
This commit is contained in:
parent
3ae814cf21
commit
1211caf750
@ -44,6 +44,7 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
export let content: string = ''
|
||||
export let showSend = true
|
||||
export let haveAttachment = false
|
||||
export let withoutTopBorder = false
|
||||
const client = getClient()
|
||||
|
||||
@ -288,7 +289,7 @@
|
||||
/>
|
||||
</div>
|
||||
{#if showSend}
|
||||
<button class="sendButton" on:click={submit} disabled={isEmpty}>
|
||||
<button class="sendButton" on:click={submit} disabled={isEmpty && !haveAttachment}>
|
||||
<div class="icon"><Send size={'medium'} /></div>
|
||||
</button>
|
||||
{/if}
|
||||
|
@ -219,6 +219,7 @@
|
||||
{content}
|
||||
{showSend}
|
||||
on:message={onMessage}
|
||||
haveAttachment={attachments.size > 0}
|
||||
withoutTopBorder={attachments.size > 0}
|
||||
on:attach={() => {
|
||||
inputFile.click()
|
||||
|
Loading…
Reference in New Issue
Block a user