Card Details Popup possible on desktop view

- until now a new form in the popup closed the popup itself
This commit is contained in:
Martin Filser 2021-10-19 21:27:47 +02:00
parent 48b2e3dd88
commit 8c3ce4bb73
4 changed files with 29 additions and 24 deletions

View file

@ -29,10 +29,15 @@ InlinedForm = BlazeComponent.extendComponent({
},
open(evt) {
evt && evt.preventDefault();
if (evt) {
evt.preventDefault();
// Close currently opened form, if any
EscapeActions.clickExecute(evt.target, 'inlinedForm');
} else {
// Close currently opened form, if any
EscapeActions.executeUpTo('inlinedForm');
}
// Close currently opened form, if any
EscapeActions.executeUpTo('inlinedForm');
this.isOpen.set(true);
currentlyOpenedForm.set(this);
},