Skip to content

Commit c1a5a42

Browse files
authored
Fix hasBlock deprecation as defined on emberjs/rfcs#689 (#443)
1 parent 361a078 commit c1a5a42

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

addon/templates/components/infinity-loader.hbs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<div
33
{{did-insert this.didInsertLoader this}}
44
class="{{this.loaderClassNames}}{{if this.viewportEntered " in-viewport"}}{{if this.isDoneLoading " reached-infinity"}}"
5-
data-test-infinity-loader>
6-
7-
{{#if hasBlock}}
5+
data-test-infinity-loader
6+
>
7+
{{#if (has-block)}}
88
{{yield this.infinityModelContent}}
99
{{else}}
1010
{{#if this.isDoneLoading}}
@@ -13,6 +13,5 @@
1313
<span>{{this.loadingText}}</span>
1414
{{/if}}
1515
{{/if}}
16-
1716
</div>
1817
{{/if}}

blueprints/infinity-template/files/app/templates/components/infinity-loader.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{#if hasBlock}}
1+
{{#if (has-block)}}
22
{{yield infinityModelContent}}
33
{{else}}
44
{{#if isDoneLoading}}

0 commit comments

Comments
 (0)