mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 12:18:49 +01:00
Move cards to top/bottom ignores the current filter if active
This commit is contained in:
parent
7577b246da
commit
f082128d99
1 changed files with 2 additions and 2 deletions
|
|
@ -658,7 +658,7 @@ Template.cardDetailsActionsPopup.events({
|
|||
event.preventDefault();
|
||||
const minOrder = _.min(
|
||||
this.list()
|
||||
.cards(this.swimlaneId)
|
||||
.cardsUnfiltered(this.swimlaneId)
|
||||
.map((c) => c.sort),
|
||||
);
|
||||
this.move(this.boardId, this.swimlaneId, this.listId, minOrder - 1);
|
||||
|
|
@ -668,7 +668,7 @@ Template.cardDetailsActionsPopup.events({
|
|||
event.preventDefault();
|
||||
const maxOrder = _.max(
|
||||
this.list()
|
||||
.cards(this.swimlaneId)
|
||||
.cardsUnfiltered(this.swimlaneId)
|
||||
.map((c) => c.sort),
|
||||
);
|
||||
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue