mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
9000317acd
no refs When disconnecting Stripe via the stripe connect modal, we were not resetting the `stripeConnectIntegrationToken` which is used by backend to calculate properties of `stripe_connect_*` settings. This resulted in `stripe_connect_*` properties being retained in settings even after Stripe is disconnected as we keep passing the old integration token to settings API which overrides all connect settings. This change resets the stripe integration token to empty again so as its not using the old value even after modal is closed or disconnected.
29 lines
982 B
Handlebars
29 lines
982 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 "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 this.settings.stripeConnectAccountId}}
|
|
<button
|
|
class="gh-btn gh-btn-black"
|
|
{{action "closeModal"}}
|
|
{{action (optional this.noop) on="mouseDown"}}
|
|
data-test-button="cancel-webhook"
|
|
>
|
|
<span>OK</span>
|
|
</button>
|
|
{{/if}}
|
|
</div> |