|
@@ -1326,6 +1326,10 @@ BlazeComponent.extendComponent({
|
|
|
return this.currentBoard.allowsDescriptionTextOnMinicard;
|
|
|
},
|
|
|
|
|
|
+ allowsCoverAttachmentOnMinicard() {
|
|
|
+ return this.currentBoard.allowsCoverAttachmentOnMinicard;
|
|
|
+ },
|
|
|
+
|
|
|
lists() {
|
|
|
return Lists.find(
|
|
|
{
|
|
@@ -1367,6 +1371,22 @@ BlazeComponent.extendComponent({
|
|
|
this.currentBoard.allowsDescriptionTextOnMinicard,
|
|
|
);
|
|
|
},
|
|
|
+ 'click .js-field-has-cover-attachment-on-minicard'(evt) {
|
|
|
+ evt.preventDefault();
|
|
|
+ this.currentBoard.allowsCoverAttachmentOnMinicard = !this.currentBoard
|
|
|
+ .allowsCoverAttachmentOnMinicard;
|
|
|
+ this.currentBoard.setallowsCoverAttachmentOnMinicard(
|
|
|
+ this.currentBoard.allowsCoverAttachmentOnMinicard,
|
|
|
+ );
|
|
|
+ $(`.js-field-has-cover-attachment-on-minicard ${MCB}`).toggleClass(
|
|
|
+ CKCLS,
|
|
|
+ this.currentBoard.allowsCoverAttachmentOnMinicard,
|
|
|
+ );
|
|
|
+ $('.js-field-has-cover-attachment-on-minicard').toggleClass(
|
|
|
+ CKCLS,
|
|
|
+ this.currentBoard.allowsCoverAttachmentOnMinicard,
|
|
|
+ );
|
|
|
+ },
|
|
|
},
|
|
|
];
|
|
|
},
|