Card delete closes now the popup after delete confirmation

This commit is contained in:
Martin Filser 2021-10-30 01:06:06 +02:00
parent 7f7ef0a914
commit 67f614ffb0

View file

@ -1114,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);