mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Import attachments
This commit is contained in:
parent
475bc70621
commit
ad27a59e57
3 changed files with 121 additions and 63 deletions
|
|
@ -108,7 +108,10 @@ Cards.helpers({
|
|||
},
|
||||
|
||||
cover() {
|
||||
return Attachments.findOne(this.coverId);
|
||||
const cover = Attachments.findOne(this.coverId);
|
||||
// if we return a cover before it is fully stored, we will get errors when we try to display it
|
||||
// todo XXX we could return a default "upload pending" image in the meantime?
|
||||
return cover && cover.url() && cover;
|
||||
},
|
||||
|
||||
absoluteUrl() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue