mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Inferface: Can move cardToTop/Bottom. Fixes #2289
This commit is contained in:
parent
02de9164f0
commit
e8f4c4d8b8
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue