summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-06-21 11:54:01 +0300
committerGitHub <noreply@github.com>2019-06-21 11:54:01 +0300
commit47a709704471892279f45f1990ded092c818a8f9 (patch)
tree41227ea5e5df3ad45ed463f130b3701bffecef8a /client/components
parentb8e774107a678386aea6c5f4404f4017829db04a (diff)
parente8f4c4d8b8de9c2c9543e86bf829f1e20d84ed3b (diff)
downloadwekan-47a709704471892279f45f1990ded092c818a8f9.tar.gz
wekan-47a709704471892279f45f1990ded092c818a8f9.tar.bz2
wekan-47a709704471892279f45f1990ded092c818a8f9.zip
Merge pull request #2508 from road42/bug/card_move_to_top_bottom_fix
Inferface: Can move cardToTop/Bottom. Fixes #2289
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/cardDetails.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index c9254751..2d875ca2 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -345,12 +345,12 @@ Template.cardDetailsActionsPopup.events({
'click .js-move-card-to-top' (evt) {
evt.preventDefault();
const minOrder = _.min(this.list().cards(this.swimlaneId).map((c) => c.sort));
- this.move(this.swimlaneId, this.listId, minOrder - 1);
+ this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
},
'click .js-move-card-to-bottom' (evt) {
evt.preventDefault();
const maxOrder = _.max(this.list().cards(this.swimlaneId).map((c) => c.sort));
- this.move(this.swimlaneId, this.listId, maxOrder + 1);
+ this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
},
'click .js-archive' (evt) {
evt.preventDefault();