瀏覽代碼

Card Details Popup only opened if not another popup is opened yet

e.g. this Popup's didn't opened:
- card sorting number
- edit received date
Martin Filser 3 年之前
父節點
當前提交
dae58d11c2
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      client/components/lists/listBody.js

+ 7 - 1
client/components/lists/listBody.js

@@ -218,11 +218,17 @@ BlazeComponent.extendComponent({
     );
   },
 
+  cardDetailsPopup(event) {
+    if (!Popup.isOpen()) {
+      Popup.open("cardDetails")(event);
+    }
+  },
+
   events() {
     return [
       {
         'click .js-minicard': this.clickOnMiniCard,
-        'click .js-minicard-popup': Popup.open("cardDetails"),
+        'click .js-minicard-popup': this.cardDetailsPopup,
         'click .js-toggle-multi-selection': this.toggleMultiSelection,
         'click .open-minicard-composer': this.scrollToBottom,
         submit: this.addCard,