From 0313e21ca1b3d18c16ce91abcf4ae44509bff0ca Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Sat, 23 Oct 2021 23:36:00 +0200 Subject: [PATCH] Fix, move to top now works after moving the card (card details action popup) --- client/components/cards/cardDetails.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index aee618976..4ea82cbc7 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -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(); }, });