mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
Merge branch 'nztqa-delete-cards' into devel
When deleting list, delete list's cards too. Thanks to nztqa !
This commit is contained in:
commit
76f6f8caa4
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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);
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue