Ghost/ghost/admin/app/components/gh-fullscreen-modal.hbs
Kevin Ansfield 3ab0a52f62 Fixed stripe connect modal not adjusting correctly to connected state
no issue

- updated `<GhFullscreenModal>` to pass `@modifier` and `@updateModifier` through to child modal components so they can adjust their own classes
- added an `updateSuccessModifier()` action to `<ModalStripeConnect>` to set the modal size when first opening and on `@onConnected/Disconnected` actions passed to the `<GhMembersPaymentsSetting>` component
- updated `<GhMembersPaymentsSetting>` to call passed in `onConnected/Disconnected` actions when connection or disconnection is finalised
2021-05-20 17:20:49 +01:00

19 lines
677 B
Handlebars

<LiquidWormhole @class="fullscreen-modal-container">
<div class="fullscreen-modal-background" {{action "clickOverlay"}}></div>
<div class={{this.modalClasses}}>
{{#if (has-block)}}
{{yield}}
{{else}}
{{#let (component this.modalPath) as |ModalComponent|}}
<ModalComponent
@model={{this.model}}
@confirm={{action "confirm"}}
@closeModal={{action "close"}}
@modifier={{this.modifier}}
@updateModifier={{action (mut this.modifier)}}
/>
{{/let}}
{{/if}}
</div>
</LiquidWormhole>