mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
preparation hide checklist-items per card
This commit is contained in:
parent
f6d2b08025
commit
d949753d54
8 changed files with 12 additions and 110 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue