Forráskód Böngészése

Merge branch 'nztqa-delete-cards' into devel

When deleting list, delete list's cards too. Thanks to nztqa !
Lauri Ojansivu 8 éve
szülő
commit
76f6f8caa4
2 módosított fájl, 3 hozzáadás és 1 törlés
  1. 2 1
      CHANGELOG.md
  2. 1 0
      client/components/lists/listHeader.js

+ 2 - 1
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:
 

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