mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 13:07:17 -04:00
fix: cover image - works now
This commit is contained in:
parent
0ad7eb4753
commit
c7500661b8
2 changed files with 2 additions and 5 deletions
|
@ -7,7 +7,7 @@ template(name="minicard")
|
|||
.handle
|
||||
.fa.fa-arrows
|
||||
if cover
|
||||
.minicard-cover(style="background-image: url('{{cover.url}}');")
|
||||
.minicard-cover(style="background-image: url('{{cover.link}}');")
|
||||
if labels
|
||||
.minicard-labels(class="{{#if hiddenMinicardLabelText}}minicard-labels-no-text{{/if}}")
|
||||
each labels
|
||||
|
|
|
@ -750,10 +750,7 @@ Cards.helpers({
|
|||
|
||||
cover() {
|
||||
if (!this.coverId) return false;
|
||||
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;
|
||||
return Attachments.findOne(this.coverId);
|
||||
},
|
||||
|
||||
checklists() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue