From dae58d11c2e725ab0a73baaa50b1b52453a7d04f Mon Sep 17 00:00:00 2001 From: Martin Filser Date: Tue, 19 Oct 2021 09:17:53 +0200 Subject: [PATCH] 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 --- client/components/lists/listBody.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 9afa5d47f..0de2fcc36 100644 --- a/client/components/lists/listBody.js +++ b/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,