From 5bdf91bd055031b21493db46b2ef38df3b3e07c4 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 9 Dec 2015 18:45:55 -0500 Subject: Remove the move and archive all cards of a list feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This operation should now be handled using the multi-selection feature, ie “select all cards” and then move them or click the “archive selection” button. This new process add an extra click which I consider reasonable enough for a relatively rare operation -- plus I want to encourage mutli-selection usage. Closes #390. --- client/components/lists/listHeader.js | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'client/components/lists/listHeader.js') diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index d660508a..5b7c5713 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -34,28 +34,9 @@ Template.listActionPopup.events({ Popup.close(); }, 'click .js-import-card': Popup.open('listImportCard'), - 'click .js-move-cards': Popup.open('listMoveCards'), - 'click .js-archive-cards': Popup.afterConfirm('listArchiveCards', function() { - this.allCards().forEach((card) => { - card.archive(); - }); - Popup.close(); - }), - 'click .js-close-list'(evt) { evt.preventDefault(); this.archive(); Popup.close(); }, }); - -Template.listMoveCardsPopup.events({ - 'click .js-select-list'() { - const fromList = Template.parentData(2).data; - const toList = this._id; - fromList.allCards().forEach((card) => { - card.move(toList); - }); - Popup.close(); - }, -}); -- cgit v1.2.3-1-g7c22