0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Switch deprecated {{hasBlock}} to (has-block)

no issue

See https://github.com/emberjs/rfcs/blob/master/text/0689-deprecate-has-block.md
This commit is contained in:
Kevin Ansfield 2021-05-12 12:27:15 +01:00
parent b003327975
commit 74b08e19b8
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<LiquidWormhole @class="fullscreen-modal-container"> <LiquidWormhole @class="fullscreen-modal-container">
<div class="fullscreen-modal-background" {{action "clickOverlay"}}></div> <div class="fullscreen-modal-background" {{action "clickOverlay"}}></div>
<div class={{this.modalClasses}}> <div class={{this.modalClasses}}>
{{#if hasBlock}} {{#if (has-block)}}
{{yield}} {{yield}}
{{else}} {{else}}
{{#let (component this.modalPath) as |ModalComponent|}} {{#let (component this.modalPath) as |ModalComponent|}}

View file

@ -4,7 +4,7 @@
class="{{this.loaderClassNames}}{{if this.viewportEntered " in-viewport"}}{{if this.isDoneLoading " reached-infinity"}}" class="{{this.loaderClassNames}}{{if this.viewportEntered " in-viewport"}}{{if this.isDoneLoading " reached-infinity"}}"
data-test-infinity-loader> data-test-infinity-loader>
{{#if hasBlock}} {{#if (has-block)}}
{{yield this.infinityModelContent}} {{yield this.infinityModelContent}}
{{else}} {{else}}
{{#if this.isDoneLoading}} {{#if this.isDoneLoading}}

View file

@ -1,4 +1,4 @@
{{#if hasBlock}} {{#if (has-block)}}
{{yield (hash {{yield (hash
isIdle=this.isIdle isIdle=this.isIdle
isRunning=this.isRunning isRunning=this.isRunning