mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
c3372f343a
closes https://github.com/TryGhost/Team/issues/2483 - the button is toggled depending on `stripeConnectIntegrationToken` which is a calculated value - however, this calculated value isn't reset when Stripe is disconnected right away without closing the modal - the reset action was already available and it's now passed to `StripeSettingsForm`, so that it can be called when Stripe is disconnected
18 lines
731 B
Handlebars
18 lines
731 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" type="button" {{on "click" this.closeModal}} {{on "mouseDown" (optional this.noop)}} data-test-button="close-stripe-connect">
|
|
{{svg-jar "close"}}
|
|
</button>
|
|
|
|
<form>
|
|
<div class="modal-body" {{did-insert this.updateSuccessModifier}}>
|
|
<Settings::Members::StripeSettingsForm
|
|
@setStripeConnectIntegrationTokenSetting={{this.setStripeConnectIntegrationTokenSetting}}
|
|
@reset={{this.reset}}
|
|
@onConnected={{this.updateSuccessModifier}}
|
|
@onDisconnected={{this.updateSuccessModifier}}
|
|
/>
|
|
</div>
|
|
</form>
|