mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-24 17:30:03 +00:00
Fix attachment image preview (#3372)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
bec400bfc8
commit
2ac3346073
plugins
attachment-resources/src/components
gmail-resources/src/components
tracker-resources/src/components
@ -93,7 +93,7 @@
|
||||
<div class="content">
|
||||
{#each docs as doc}
|
||||
<div class="item">
|
||||
<AttachmentPresenter value={doc} removable on:remove={() => remove(doc)} />
|
||||
<AttachmentPresenter value={doc} showPreview removable on:remove={() => remove(doc)} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
@ -92,7 +92,7 @@
|
||||
<div class="flex-row-center list mt-2">
|
||||
{#each attachments as attachment}
|
||||
<div class="item flex">
|
||||
<AttachmentPresenter value={attachment} />
|
||||
<AttachmentPresenter value={attachment} showPreview />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<div class="flex-row-center list mt-2">
|
||||
{#each attachments as attachment}
|
||||
<div class="item flex">
|
||||
<AttachmentPresenter value={attachment} />
|
||||
<AttachmentPresenter value={attachment} showPreview />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
@ -213,6 +213,7 @@
|
||||
<div class="item flex-row-center flex-no-shrink">
|
||||
<AttachmentPresenter
|
||||
value={attachment}
|
||||
showPreview
|
||||
removable
|
||||
on:remove={(result) => {
|
||||
if (result !== undefined) removeAttachment(attachment)
|
||||
|
@ -324,6 +324,7 @@
|
||||
<div class="item flex-row-center flex-no-shrink">
|
||||
<AttachmentPresenter
|
||||
value={attachment}
|
||||
showPreview
|
||||
removable
|
||||
on:remove={(result) => {
|
||||
if (result !== undefined) removeAttachment(attachment)
|
||||
|
@ -754,6 +754,7 @@
|
||||
{#each Array.from(attachments.values()) as attachment}
|
||||
<AttachmentPresenter
|
||||
value={attachment}
|
||||
showPreview
|
||||
removable
|
||||
on:remove={(result) => {
|
||||
if (result.detail !== undefined) descriptionBox.removeAttachmentById(result.detail._id)
|
||||
|
Loading…
Reference in New Issue
Block a user