mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Import attachments
This commit is contained in:
parent
475bc70621
commit
ad27a59e57
3 changed files with 121 additions and 63 deletions
|
|
@ -86,7 +86,8 @@ BlazeComponent.extendComponent({
|
|||
|
||||
attachmentLink() {
|
||||
const attachment = this.currentData().attachment();
|
||||
return attachment && Blaze.toHTML(HTML.A({
|
||||
// trying to display url before file is stored generates js errors
|
||||
return attachment && attachment.url({ download: true }) && Blaze.toHTML(HTML.A({
|
||||
href: FlowRouter.path(attachment.url({ download: true })),
|
||||
target: '_blank',
|
||||
}, attachment.name()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue