Card Details Popup, Session variable popupCard is deleted on popup close

This commit is contained in:
Martin Filser 2021-10-19 11:25:07 +02:00
parent c07a1412f7
commit 27213245ef

View file

@ -537,6 +537,9 @@ BlazeComponent.extendComponent({
},
}).register('cardDetails');
Template.cardDetailsPopup.onDestroyed(() => {
Session.delete('popupCard');
});
Template.cardDetailsPopup.helpers({
popupCard() {
const ret = Utils.getPopupCard();