Kaynağa Gözat

Add delete the card belonging to when deleting the list

nztqa 8 yıl önce
ebeveyn
işleme
54f3cf9429
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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);
   }),