From 47468a475003c433db0fcc7735741e4548d6c19c Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 25 Aug 2023 00:12:08 +0300 Subject: [PATCH] Add back some parts of Show checklist at minicard feature. Thanks to xet7 ! --- client/components/cards/checklists.jade | 18 +++++++++--------- client/components/cards/minicard.jade | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/client/components/cards/checklists.jade b/client/components/cards/checklists.jade index c1083775a..41f55292b 100644 --- a/client/components/cards/checklists.jade +++ b/client/components/cards/checklists.jade @@ -123,15 +123,15 @@ template(name='checklistItemDetail') template(name="checklistActionsPopup") if currentUser.isBoardMember - //span.text-show-at-minicard - // | {{_ 'show-at-minicard'}} - //.material-toggle-switch(title="{{_ 'show-checklist-at-minicard'}}") - // if showAtMinicard - // input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton" checked="checked") - // else - // input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton") - // label.toggle-label(for="toggleShowChecklistAtMinicardButton") - //hr + span.text-show-at-minicard + | {{_ 'show-at-minicard'}} + .material-toggle-switch(title="{{_ 'show-checklist-at-minicard'}}") + if showAtMinicard + input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton" checked="checked") + else + input.toggle-switch(type="checkbox" id="toggleShowChecklistAtMinicardButton") + label.toggle-label(for="toggleShowChecklistAtMinicardButton") + hr span.text-hide-checked-items | {{_ 'hide-checked-items'}} .material-toggle-switch(title="{{_ 'hide-checked-items'}}") diff --git a/client/components/cards/minicard.jade b/client/components/cards/minicard.jade index 342e41776..1eccd3fbb 100644 --- a/client/components/cards/minicard.jade +++ b/client/components/cards/minicard.jade @@ -111,11 +111,11 @@ template(name="minicard") +viewer = trueValue -// .card-checklist-attachmentGalleries -// .card-checklist-attachmentGallery.card-checklists -// if currentBoard.allowsChecklists -// hr -// +checklists(cardId=_id showAtMinicard=true) + .card-checklist-attachmentGalleries + .card-checklist-attachmentGallery.card-checklists + if currentBoard.allowsChecklists + //hr + //+checklists(cardId=_id showAtMinicard=true) if showAssignee if getAssignees