fixup! Ref: original & and use fileObj.meta

pull/4336/head
David Arnold 5 years ago committed by Denis Perov
parent 0254282daf
commit 0ad7eb4753
  1. 4
      client/components/cards/attachments.js

@ -13,10 +13,10 @@ Template.attachmentsGalery.events({
event.stopPropagation();
},
'click .js-add-cover'() {
Cards.findOne(this.cardId).setCover(this._id);
Cards.findOne(this.meta.cardId).setCover(this._id);
},
'click .js-remove-cover'() {
Cards.findOne(this.cardId).unsetCover();
Cards.findOne(this.meta.cardId).unsetCover();
},
'click .js-preview-image'(event) {
Popup.open('previewAttachedImage').call(this, event);

Loading…
Cancel
Save