summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-06-07 13:28:36 +0300
committerLauri Ojansivu <x@xet7.org>2017-06-07 13:28:36 +0300
commit76f6f8caa4a60aaf3b39d50c0599dcfadd7f30d8 (patch)
treefa2792a3bb7aaaf1eb4b0ccc5df96de89c348f0f
parent9a6b4278d366085c21af106cba8c0b6f2a51f7c7 (diff)
parent9481264283a2288b7659bfdb17f23b567a1cf3cf (diff)
downloadwekan-76f6f8caa4a60aaf3b39d50c0599dcfadd7f30d8.tar.gz
wekan-76f6f8caa4a60aaf3b39d50c0599dcfadd7f30d8.tar.bz2
wekan-76f6f8caa4a60aaf3b39d50c0599dcfadd7f30d8.zip
Merge branch 'nztqa-delete-cards' into devel
When deleting list, delete list's cards too. Thanks to nztqa !
-rw-r--r--CHANGELOG.md3
-rw-r--r--client/components/lists/listHeader.js1
2 files changed, 3 insertions, 1 deletions
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:
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);
}),