Ghost/ghost/admin/app/components/modal-stripe-connect.hbs
Rishabh bc25dbdefa Fixed modal errors in stripe connect and member product
refs 909bd60db3

- The modal actions for glimmer modal components need to define `actions.confirm` separately and add confirmAction to handle both enter and manual confirmation
2021-06-18 16:24:18 +05:30

29 lines
979 B
Handlebars

<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"}}>
{{svg-jar "close"}}
</button>
<form>
<div class="modal-body" {{did-insert this.updateSuccessModifier}}>
<GhMembersPaymentsSetting
@setStripeConnectIntegrationTokenSetting={{this.setStripeConnectIntegrationTokenSetting}}
@onConnected={{this.updateSuccessModifier}}
@onDisconnected={{this.updateSuccessModifier}}
/>
</div>
</form>
<div class="modal-footer">
{{#if this.settings.stripeConnectAccountId}}
<button
class="gh-btn gh-btn-black"
{{action "confirm"}}
{{action (optional this.noop) on="mouseDown"}}
data-test-button="stripe-connect-ok"
>
<span>OK</span>
</button>
{{/if}}
</div>