mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 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
2 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
<header class="modal-header" data-test-modal="webhook-form" {{will-destroy this.reset}}>
|
<header class="modal-header" data-test-modal="webhook-form" {{will-destroy this.reset}}>
|
||||||
<h1 data-test-text="title">Connect with Stripe</h1>
|
<h1 data-test-text="title">Connect with Stripe</h1>
|
||||||
</header>
|
</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"}}
|
{{svg-jar "close"}}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
@ -26,4 +26,4 @@
|
||||||
<span>OK</span>
|
<span>OK</span>
|
||||||
</button>
|
</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -51,6 +51,10 @@ export default class ModalStripeConnect extends ModalBase {
|
||||||
return this.confirmAction();
|
return this.confirmAction();
|
||||||
}
|
}
|
||||||
// noop - enter key shouldn't do anything
|
// noop - enter key shouldn't do anything
|
||||||
|
},
|
||||||
|
// needed because ModalBase uses .send() for keyboard events
|
||||||
|
closeModal() {
|
||||||
|
this.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue