Merge pull request #4138 from mfilser/card_popup_close_color_remove-move_bottom-delete

Card popup close color remove move bottom delete
This commit is contained in:
Lauri Ojansivu 2021-11-11 21:48:12 +02:00 committed by GitHub
commit 5fd7407207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -690,6 +690,7 @@ Template.cardDetailsActionsPopup.events({
.map((c) => c.sort),
);
this.move(this.boardId, this.swimlaneId, this.listId, maxOrder + 1);
Popup.back();
},
'click .js-archive': Popup.afterConfirm('cardArchive', function () {
Popup.close();
@ -1011,7 +1012,7 @@ BlazeComponent.extendComponent({
},
'click .js-remove-color'() {
this.currentCard.setColor(null);
Popup.back();
Popup.close();
},
},
];
@ -1113,7 +1114,7 @@ BlazeComponent.extendComponent({
}
},
'click .js-delete': Popup.afterConfirm('cardDelete', function () {
Popup.back();
Popup.close();
// verify that there are no linked cards
if (Cards.find({ linkedId: this._id }).count() === 0) {
Cards.remove(this._id);