Add delete the card belonging to when deleting the list

This commit is contained in:
nztqa 2017-06-07 14:32:38 +09:00
parent 9a6b4278d3
commit 54f3cf9429

View file

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