Browse Source

Add back some parts of Show checklist at minicard feature.

Thanks to xet7 !
Lauri Ojansivu 1 year ago
parent
commit
47468a4750
2 changed files with 14 additions and 14 deletions
  1. 9 9
      client/components/cards/checklists.jade
  2. 5 5
      client/components/cards/minicard.jade

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

+ 5 - 5
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