summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listHeader.js
diff options
context:
space:
mode:
authornztqa <nztqa@users.noreply.github.com>2017-06-07 14:32:38 +0900
committernztqa <nztqa@users.noreply.github.com>2017-06-07 14:32:38 +0900
commit54f3cf94294b084c10ccb7b2e0abd7d547f9c13d (patch)
treef80a1957b7eaea7404b60a5fd376a34f89d01358 /client/components/lists/listHeader.js
parent9a6b4278d366085c21af106cba8c0b6f2a51f7c7 (diff)
downloadwekan-54f3cf94294b084c10ccb7b2e0abd7d547f9c13d.tar.gz
wekan-54f3cf94294b084c10ccb7b2e0abd7d547f9c13d.tar.bz2
wekan-54f3cf94294b084c10ccb7b2e0abd7d547f9c13d.zip
Add delete the card belonging to when deleting the list
Diffstat (limited to 'client/components/lists/listHeader.js')
-rw-r--r--client/components/lists/listHeader.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index 7a95a35c..1ad9f9dd 100644
--- a/client/components/lists/listHeader.js
+++ b/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);
}),