mirror of
https://github.com/wekan/wekan.git
synced 2026-02-11 10:44:20 +01:00
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:
parent
db4b04d837
commit
74f1dfde72
9 changed files with 510 additions and 30 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue