Procházet zdrojové kódy

Card watching closes now the popup after confirmation

Martin Filser před 4 roky
rodič
revize
c7ab0403a6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      client/components/cards/cardDetails.js

+ 1 - 1
client/components/cards/cardDetails.js

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