Fix, move to top now works after moving the card (card details action popup)

This commit is contained in:
Martin Filser 2021-10-23 23:36:00 +02:00
parent e6f94c9d16
commit 0313e21ca1

View file

@ -820,6 +820,12 @@ Template.moveCardPopup.events({
const slSelect = $('.js-select-swimlanes')[0];
const swimlaneId = slSelect.options[slSelect.selectedIndex].value;
card.move(boardId, swimlaneId, listId, 0);
// set new id's to card object in case the card is moved to top by the comment "moveCard" after this command (.js-move-card)
this.boardId = boardId;
this.swimlaneId = swimlaneId;
this.listId = listId;
Popup.back();
},
});