소스 검색

Add delete the card belonging to when deleting the list

nztqa 8 년 전
부모
커밋
54f3cf9429
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      client/components/lists/listHeader.js

+ 1 - 0
client/components/lists/listHeader.js

@@ -68,6 +68,7 @@ Template.listActionPopup.events({
 Template.listMorePopup.events({
   'click .js-delete': Popup.afterConfirm('listDelete', function () {
     Popup.close();
+    this.allCards().map((card) => Cards.remove(card._id));
     Lists.remove(this._id);
     Utils.goBoardId(this.boardId);
   }),