mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 04:04:21 +01:00
Add a button to move selected cards
This is an alternative to drag and drop to move a set of selected
cards. This feature was available at the list level until I deleted it
in 5bdf91b, so it makes sense to add it back at the multi-selection
level.
This commit is contained in:
parent
0954ef3e44
commit
2733c1d3a0
3 changed files with 29 additions and 12 deletions
|
|
@ -67,6 +67,9 @@ template(name="multiselectionSidebar")
|
|||
else if someSelectedElementHave 'member' _id
|
||||
i.fa.fa-ellipsis-h
|
||||
hr
|
||||
a.sidebar-btn.js-move-selection
|
||||
i.fa.fa-share
|
||||
span {{_ 'move-selection'}}
|
||||
a.sidebar-btn.js-archive-selection
|
||||
i.fa.fa-archive
|
||||
span {{_ 'archive-selection'}}
|
||||
|
|
@ -80,3 +83,7 @@ template(name="disambiguateMultiMemberPopup")
|
|||
p {{_ 'what-to-do'}}
|
||||
button.wide.js-unassign-member {{_ 'unassign-member'}}
|
||||
button.wide.js-assign-member {{_ 'assign-member'}}
|
||||
|
||||
template(name="moveSelectionPopup")
|
||||
+boardLists
|
||||
|
||||
|
|
|
|||
|
|
@ -93,6 +93,7 @@ BlazeComponent.extendComponent({
|
|||
return popup.call(this.currentData(), evt);
|
||||
}
|
||||
},
|
||||
'click .js-move-selection': Popup.open('moveSelection'),
|
||||
'click .js-archive-selection'() {
|
||||
mutateSelectedCards('archive');
|
||||
EscapeActions.executeUpTo('multiselection');
|
||||
|
|
@ -122,3 +123,10 @@ Template.disambiguateMultiMemberPopup.events({
|
|||
Popup.close();
|
||||
},
|
||||
});
|
||||
|
||||
Template.moveSelectionPopup.events({
|
||||
'click .js-select-list'() {
|
||||
mutateSelectedCards('move', this._id);
|
||||
EscapeActions.executeUpTo('multiselection');
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue