Ghost/ghost/admin/app/templates/components/gh-fullscreen-modal.hbs
Kevin Ansfield 2844c896a8 refactor gh-fullscreen-modal component to use liquid-wormhole directly (#281)
no issue

- remove `liquid-tether` dependency
- add `liquid-wormhole` dependency (previously a dependency of liquid-tether)
- refactor `gh-fullscreen-modal` to simplify and use `liquid-wormhole` directly instead of `liquid-tether` as we don't need the positioning ability that `liquid-tether` provides
- fixes broken View/Component tree in Ember Inspector 🎉
2016-10-07 14:27:39 +01:00

14 lines
444 B
Handlebars

{{#liquid-wormhole class="fullscreen-modal-container"}}
<div class="fullscreen-modal-background" {{action "clickOverlay"}}></div>
<div class={{modalClasses}}>
{{#if hasBlock}}
{{yield}}
{{else}}
{{component modalPath
model=model
confirm=(action 'confirm')
closeModal=(action 'close')}}
{{/if}}
</div>
{{/liquid-wormhole}}