diff options
author | Xavier Priour <xavier.priour@bubblyware.com> | 2015-11-16 21:41:49 +0100 |
---|---|---|
committer | Xavier Priour <xavier.priour@bubblyware.com> | 2015-11-16 21:41:49 +0100 |
commit | ad27a59e5790d26f23eb48c2d71d9d3c0a01e81f (patch) | |
tree | b1fddb3b675f3f1662a23bc2e6c7e1f7e41594ce /client/components | |
parent | 475bc70621379733dea364147221cc6a13269994 (diff) | |
download | wekan-ad27a59e5790d26f23eb48c2d71d9d3c0a01e81f.tar.gz wekan-ad27a59e5790d26f23eb48c2d71d9d3c0a01e81f.tar.bz2 wekan-ad27a59e5790d26f23eb48c2d71d9d3c0a01e81f.zip |
Import attachments
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/activities/activities.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index 64e9865d..c1465b04 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -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())); |