From 50660dfeccb6f1d9e31e362b3a3a64d90e5ed7c1 Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 18 Sep 2023 07:30:37 +0300 Subject: [PATCH] UBER-796: fixed AttachmentActions (#3709) Signed-off-by: Alexander Platov --- .../src/components/AttachmentActions.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/attachment-resources/src/components/AttachmentActions.svelte b/plugins/attachment-resources/src/components/AttachmentActions.svelte index 625a17773e..0c7e43727b 100644 --- a/plugins/attachment-resources/src/components/AttachmentActions.svelte +++ b/plugins/attachment-resources/src/components/AttachmentActions.svelte @@ -25,6 +25,8 @@ export let attachment: Attachment export let isSaved = false + let download: HTMLAnchorElement + $: saveAttachmentAction = isSaved ? ({ label: attachmentPlugin.string.RemoveAttachmentFromSaved, @@ -67,9 +69,10 @@ class="mr-1" href={getFileUrl(attachment.file, 'full', attachment.name)} download={attachment.name} + bind:this={download} on:click|stopPropagation > - {}} /> + download.click()} />