Add back some parts of Show checklist at minicard feature.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2023-08-25 00:12:08 +03:00
parent 968a32164b
commit 47468a4750
2 changed files with 14 additions and 14 deletions

View file

@ -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'}}")

View file

@ -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