From 74b08e19b86375d3ea6a9e10a932c628dcc11589 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 12 May 2021 12:27:15 +0100 Subject: [PATCH] Switch deprecated `{{hasBlock}}` to `(has-block)` no issue See https://github.com/emberjs/rfcs/blob/master/text/0689-deprecate-has-block.md --- ghost/admin/app/components/gh-fullscreen-modal.hbs | 2 +- ghost/admin/app/components/gh-infinity-loader.hbs | 2 +- ghost/admin/app/components/gh-task-button.hbs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/admin/app/components/gh-fullscreen-modal.hbs b/ghost/admin/app/components/gh-fullscreen-modal.hbs index afa065c16b..56f6d17115 100644 --- a/ghost/admin/app/components/gh-fullscreen-modal.hbs +++ b/ghost/admin/app/components/gh-fullscreen-modal.hbs @@ -1,7 +1,7 @@
- {{#if hasBlock}} + {{#if (has-block)}} {{yield}} {{else}} {{#let (component this.modalPath) as |ModalComponent|}} diff --git a/ghost/admin/app/components/gh-infinity-loader.hbs b/ghost/admin/app/components/gh-infinity-loader.hbs index 8b591de350..50bdf67f91 100644 --- a/ghost/admin/app/components/gh-infinity-loader.hbs +++ b/ghost/admin/app/components/gh-infinity-loader.hbs @@ -4,7 +4,7 @@ class="{{this.loaderClassNames}}{{if this.viewportEntered " in-viewport"}}{{if this.isDoneLoading " reached-infinity"}}" data-test-infinity-loader> - {{#if hasBlock}} + {{#if (has-block)}} {{yield this.infinityModelContent}} {{else}} {{#if this.isDoneLoading}} diff --git a/ghost/admin/app/components/gh-task-button.hbs b/ghost/admin/app/components/gh-task-button.hbs index 2f5e5b8906..ba79ca37ed 100644 --- a/ghost/admin/app/components/gh-task-button.hbs +++ b/ghost/admin/app/components/gh-task-button.hbs @@ -1,4 +1,4 @@ -{{#if hasBlock}} +{{#if (has-block)}} {{yield (hash isIdle=this.isIdle isRunning=this.isRunning