Opened card Checklist menu: Hide finished tasks. Show Checklist at Minicard.

Thanks to C0rn3j and xet7 !

Fixes #6019,
fixes #5567,
fixes #2984
This commit is contained in:
Lauri Ojansivu 2025-12-29 21:42:19 +02:00
parent cf62807ad5
commit fbfde81bc8
13 changed files with 312 additions and 161 deletions

View file

@ -497,13 +497,6 @@ Cards.attachSchema(
type: Boolean,
defaultValue: false,
},
hideFinishedChecklistIfItemsAreHidden: {
/**
* hide completed checklist?
*/
type: Boolean,
optional: true,
},
showListOnMinicard: {
/**
* show list name on minicard?
@ -512,6 +505,14 @@ Cards.attachSchema(
optional: true,
defaultValue: false,
},
showChecklistAtMinicard: {
/**
* show checklist on minicard?
*/
type: Boolean,
optional: true,
defaultValue: false,
},
}),
);
@ -2297,10 +2298,10 @@ Cards.mutations({
};
},
toggleHideFinishedChecklist() {
toggleShowChecklistAtMinicard() {
return {
$set: {
hideFinishedChecklistIfItemsAreHidden: !this.hideFinishedChecklistIfItemsAreHidden,
showChecklistAtMinicard: !this.showChecklistAtMinicard,
}
};
},