Fix copy move card at board and MultiSelect to have numbered target of board, card above or below. Added MultiSelect change color.

Thanks to mimZD and xet7 !

Fixes #6045
This commit is contained in:
Lauri Ojansivu 2025-12-29 19:09:45 +02:00
parent db4b04d837
commit 74f1dfde72
9 changed files with 510 additions and 30 deletions

View file

@ -2018,8 +2018,8 @@ Cards.mutations({
};
},
moveToEndOfList({ listId } = {}) {
let swimlaneId = this.swimlaneId;
moveToEndOfList({ listId, swimlaneId } = {}) {
swimlaneId = swimlaneId || this.swimlaneId;
const boardId = this.boardId;
let sortIndex = 0;
@ -2030,7 +2030,7 @@ Cards.mutations({
swimlaneId = board.getDefaultSwimline()._id;
}
// Move the minicard to the end of the target list
let parentElementDom = $(`#swimlane-${this.swimlaneId}`).get(0);
let parentElementDom = $(`#swimlane-${swimlaneId}`).get(0);
if (!parentElementDom) parentElementDom = $(':root');
const lastCardDom = $(parentElementDom)