浏览代码

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);
   }),