Card Details Popup, Checklist is now displayed

This commit is contained in:
Martin Filser 2021-10-18 10:56:24 +02:00
parent 4a87d5f0f3
commit 24b0613bac
2 changed files with 6 additions and 1 deletions

View file

@ -18,7 +18,7 @@ template(name="checklists")
.card-checklist-items
each checklist in currentCard.checklists
each checklist in checklists
+checklistDetail(checklist = checklist)
if canModifyCard

View file

@ -262,6 +262,11 @@ BlazeComponent.extendComponent({
}).register('boardsSwimlanesAndLists');
Template.checklists.helpers({
checklists() {
const card = Cards.findOne(this.cardId);
const ret = card.checklists();
return ret;
},
hideCheckedItems() {
const currentUser = Meteor.user();
if (currentUser) return currentUser.hasHideCheckedItems();