summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorRomulus Urakagi Tsai <urakagi@gmail.com>2020-01-14 06:29:34 +0000
committerRomulus Urakagi Tsai <urakagi@gmail.com>2020-01-14 06:29:34 +0000
commitd26bf04bfa088b770c85a895700fd704cc08e234 (patch)
treea082b90b5e26aba2cff453176bedae8a498b74b7 /client/components/cards
parent6ebd6defe917a70e84467d64a1c15ec109c73f1b (diff)
downloadwekan-d26bf04bfa088b770c85a895700fd704cc08e234.tar.gz
wekan-d26bf04bfa088b770c85a895700fd704cc08e234.tar.bz2
wekan-d26bf04bfa088b770c85a895700fd704cc08e234.zip
Change to relative path and /var/attachments to store
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/attachments.js4
-rw-r--r--client/components/cards/minicard.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/client/components/cards/attachments.js b/client/components/cards/attachments.js
index 9e32825e..82ecabcf 100644
--- a/client/components/cards/attachments.js
+++ b/client/components/cards/attachments.js
@@ -47,7 +47,7 @@ Template.attachmentsGalery.events({
Template.attachmentsGalery.helpers({
url() {
- return Attachments.link(this);
+ return Attachments.link(this, 'original', '/');
},
isUploaded() {
return !!this.meta.uploaded;
@@ -62,7 +62,7 @@ Template.previewAttachedImagePopup.events({
Template.previewAttachedImagePopup.helpers({
url() {
- return Attachments.link(this);
+ return Attachments.link(this, 'original', '/');
}
});
diff --git a/client/components/cards/minicard.js b/client/components/cards/minicard.js
index 3ddb7e97..430042f4 100644
--- a/client/components/cards/minicard.js
+++ b/client/components/cards/minicard.js
@@ -33,6 +33,6 @@ Template.minicard.helpers({
return Meteor.user().hasHiddenMinicardLabelText();
},
coverUrl() {
- return Attachments.findOne(this.coverId).link();
+ return Attachments.findOne(this.coverId).link('original', '/');
},
});