mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-06 06:04:06 +03:00
43b76056ca
no issue - we don't want accidental background clicks closing this modal as it contains complex UI rather than a simple notification - the members import modal is still using the old/outdated modal pattern so there was no option for disabling background click, went with a quick-fix for now rather than updating everything to our modern modal patterns - added passthrough of arguments to the `close` action on `<GhFullscreenModal>` - updated `<GhFullscreenModal>` background click handler to pass "background" as an action argument - updated the action used for handling members import modal closing to skip closing when it receives "background" as the first argument
19 lines
690 B
Handlebars
19 lines
690 B
Handlebars
<LiquidWormhole @class="fullscreen-modal-container">
|
|
<div class="fullscreen-modal-background" {{action "clickOverlay" "background"}}></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>
|