mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
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.
This commit is contained in:
parent
f9a60616df
commit
5bdf91bd05
4 changed files with 1 additions and 30 deletions
|
|
@ -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();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue