Merge branch 'nztqa-delete-cards' into devel

When deleting list, delete list's cards too. Thanks to nztqa !
This commit is contained in:
Lauri Ojansivu 2017-06-07 13:28:36 +03:00
commit 76f6f8caa4
2 changed files with 3 additions and 1 deletions

View file

@ -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:

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