Browse Source

Add delete the card belonging to when deleting the list

nztqa 8 years ago
parent
commit
54f3cf9429
1 changed files with 1 additions and 0 deletions
  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);
   }),