summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebarFilters.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-12-10 00:34:44 -0500
committerMaxime Quandalle <maxime@quandalle.com>2015-12-10 00:34:44 -0500
commit2733c1d3a065dd4ce0a42ac6f6d8ad60ddeec364 (patch)
tree2f56a579f663a5ff613a3ecb6b3a132f45064cb8 /client/components/sidebar/sidebarFilters.js
parent0954ef3e441da585ca0f801301ab7ea6e83e7cbf (diff)
downloadwekan-2733c1d3a065dd4ce0a42ac6f6d8ad60ddeec364.tar.gz
wekan-2733c1d3a065dd4ce0a42ac6f6d8ad60ddeec364.tar.bz2
wekan-2733c1d3a065dd4ce0a42ac6f6d8ad60ddeec364.zip
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.
Diffstat (limited to 'client/components/sidebar/sidebarFilters.js')
-rw-r--r--client/components/sidebar/sidebarFilters.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/sidebar/sidebarFilters.js b/client/components/sidebar/sidebarFilters.js
index 50e76200..ba4e4df9 100644
--- a/client/components/sidebar/sidebarFilters.js
+++ b/client/components/sidebar/sidebarFilters.js
@@ -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');
+ },
+});