mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-13 14:39:52 +03:00
bc1aa493fa
refs https://github.com/TryGhost/Team/issues/1650 - Some places only checked for Stripe being connected via the 'connect' method and ignored the 'direct' method - Updated (where possible) admin to use the new calculated `paid_members_enabled` setting
28 lines
1.0 KiB
Handlebars
28 lines
1.0 KiB
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" type="button" {{action "closeModal"}} {{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 (and this.membersUtils.isStripeEnabled this.settings.stripeConnectAccountId)}}
|
|
<button
|
|
class="gh-btn gh-btn-black" data-test-button="stripe-connect-ok" type="button" {{action "confirm"}}
|
|
{{action (optional this.noop) on="mouseDown"}}
|
|
>
|
|
<span>OK</span>
|
|
</button>
|
|
{{/if}}
|
|
</div>
|