From 54f3cf94294b084c10ccb7b2e0abd7d547f9c13d Mon Sep 17 00:00:00 2001 From: nztqa Date: Wed, 7 Jun 2017 14:32:38 +0900 Subject: Add delete the card belonging to when deleting the list --- client/components/lists/listHeader.js | 1 + 1 file changed, 1 insertion(+) 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); }), -- cgit v1.2.3-1-g7c22 From 9481264283a2288b7659bfdb17f23b567a1cf3cf Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Wed, 7 Jun 2017 13:28:03 +0300 Subject: When deleting list, delete list's cards too. Thanks to nztqa ! --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1741cbb5..4863bcc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,8 @@ This release adds the following new features: * [Change the way to delete a list (card-like)](https://github.com/wekan/wekan/pull/1050), fixes - [missing undo button](https://github.com/wekan/wekan/issues/1023). + [missing undo button](https://github.com/wekan/wekan/issues/1023); +* [When deleting list, delete list's cards too](https://github.com/wekan/wekan/pull/1054). and fixes the following bugs: -- cgit v1.2.3-1-g7c22