mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
fix: activity download link
This commit is contained in:
parent
c7500661b8
commit
59a936ae90
1 changed files with 3 additions and 3 deletions
|
@ -196,14 +196,14 @@ BlazeComponent.extendComponent({
|
|||
// trying to display url before file is stored generates js errors
|
||||
return (
|
||||
(attachment &&
|
||||
attachment.url({ download: true }) &&
|
||||
attachment.path &&
|
||||
Blaze.toHTML(
|
||||
HTML.A(
|
||||
{
|
||||
href: attachment.url({ download: true }),
|
||||
href: `${attachment.link()}?download=true`,
|
||||
target: '_blank',
|
||||
},
|
||||
DOMPurify.sanitize(attachment.name()),
|
||||
DOMPurify.sanitize(attachment.name),
|
||||
),
|
||||
)) ||
|
||||
DOMPurify.sanitize(this.currentData().activity.attachmentName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue