diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-12-09 18:45:55 -0500 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-12-09 18:45:55 -0500 |
commit | 5bdf91bd055031b21493db46b2ef38df3b3e07c4 (patch) | |
tree | 8ca30d77ab1a3e3797ce683a3e46081839640f74 /client/components/lists/listHeader.js | |
parent | f9a60616df625ea71386442de512fbfb43602d09 (diff) | |
download | wekan-5bdf91bd055031b21493db46b2ef38df3b3e07c4.tar.gz wekan-5bdf91bd055031b21493db46b2ef38df3b3e07c4.tar.bz2 wekan-5bdf91bd055031b21493db46b2ef38df3b3e07c4.zip |
Remove the move and archive all cards of a list feature
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.
Diffstat (limited to 'client/components/lists/listHeader.js')
-rw-r--r-- | client/components/lists/listHeader.js | 19 |
1 files changed, 0 insertions, 19 deletions
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(); - }, -}); |