Card watching closes now the popup after confirmation

This commit is contained in:
Martin Filser 2021-10-28 11:40:09 +02:00
parent f90fb28483
commit c7ab0403a6

View file

@ -701,7 +701,7 @@ Template.cardDetailsActionsPopup.events({
const currentCard = this;
const level = currentCard.findWatcher(Meteor.userId()) ? null : 'watching';
Meteor.call('watch', 'card', currentCard._id, level, (err, ret) => {
if (!err && ret) Popup.back();
if (!err && ret) Popup.close();
});
},
});