Преглед на файлове

Card watching closes now the popup after confirmation

Martin Filser преди 4 години
родител
ревизия
c7ab0403a6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();
     });
   },
 });