Card Details Popup, every "Sub-Popup" must use .back() instead of .close()

- .close() closes the popup. Until now it was ok, but as the Card
  Details are opened in a popup too, .back() must be used to get the
  same behaviour back
- .back() is also .close() if there is no "popup layer" left
This commit is contained in:
Martin Filser 2021-10-21 10:12:55 +02:00
parent a6d3810e19
commit a59dfa8fc0
5 changed files with 51 additions and 77 deletions

View file

@ -269,7 +269,7 @@ Template.addReactionPopup.events({
const cardComment = CardComments.findOne({_id: commentId});
cardComment.toggleReaction(codepoint);
}
Popup.close();
Popup.back();
},
})