preparation hide checklist-items per card

This commit is contained in:
Martin Filser 2023-09-15 21:47:05 +02:00
parent f6d2b08025
commit d949753d54
8 changed files with 12 additions and 110 deletions

View file

@ -27,14 +27,6 @@ Checklists.attachSchema(
type: Date,
optional: true,
},
showAtMinicard: {
/**
* Show at minicard. Default: false.
*/
type: Boolean,
optional: true,
defaultValue: false,
},
createdAt: {
/**
* Creation date of the checklist
@ -142,9 +134,6 @@ Checklists.helpers({
const items = ReactiveCache.getChecklist({ _id: this._id }).items;
return _.pluck(items, '_id').indexOf(itemId);
},
hasShowChecklistAtMinicard() {
return showAtMinicard || false;
},
});
Checklists.allow({
@ -202,15 +191,6 @@ Checklists.mutations({
},
};
},
toggleShowChecklistAtMinicard(checklistId) {
const value = this.hasShowChecklistAtMinicard();
return {
$set: {
'showAtMinicard': !value,
},
};
},
});
if (Meteor.isServer) {