🐛 Fixed stripe connect modal not closing
closes https://github.com/TryGhost/Ghost/issues/13090 The `X` on stripe connect modal is not closing the popup as the updated modal changes was not wiring the close method. Note: Clicking outside the popup to close it was still working
This commit is contained in:
parent
4665e64103
commit
38a499a531
@ -1,7 +1,7 @@
|
||||
<header class="modal-header" data-test-modal="webhook-form" {{will-destroy this.reset}}>
|
||||
<h1 data-test-text="title">Connect with Stripe</h1>
|
||||
</header>
|
||||
<button class="close" href title="Close" {{action "confirm"}} {{action (optional this.noop) on="mouseDown"}}>
|
||||
<button class="close" href title="Close" {{action "closeModal"}} {{action (optional this.noop) on="mouseDown"}}>
|
||||
{{svg-jar "close"}}
|
||||
</button>
|
||||
|
||||
@ -26,4 +26,4 @@
|
||||
<span>OK</span>
|
||||
</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -51,6 +51,10 @@ export default class ModalStripeConnect extends ModalBase {
|
||||
return this.confirmAction();
|
||||
}
|
||||
// noop - enter key shouldn't do anything
|
||||
},
|
||||
// needed because ModalBase uses .send() for keyboard events
|
||||
closeModal() {
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user