Skip to content

Commit

Permalink
Replace hasBlock usage with has-block helper (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfefferle committed Dec 7, 2021
1 parent 68f591c commit 3a06e58
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addon/components/ember-tbody/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

as |api|
}}
{{#if hasBlock}}
{{#if (has-block)}}
{{yield (hash
rowValue=api.rowValue
rowMeta=api.rowMeta
Expand Down
4 changes: 2 additions & 2 deletions addon/components/ember-td/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
{{/if}}

<div class="et-cell-content">
{{#if hasBlock}}
{{#if (has-block)}}
{{yield this.cellValue this.columnValue this.rowValue this.cellMeta this.columnMeta this.rowMeta this.rowsCount}}
{{else}}
{{this.cellValue}}
{{/if}}
</div>
</div>
{{else}}
{{#if hasBlock}}
{{#if (has-block)}}
{{yield this.cellValue this.columnValue this.rowValue this.cellMeta this.columnMeta this.rowMeta this.rowsCount}}
{{else}}
{{this.cellValue}}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/ember-tfoot/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

as |api|
}}
{{#if hasBlock}}
{{#if (has-block)}}
{{yield (hash
rowValue=api.rowValue
rowMeta=api.rowMeta
Expand Down
4 changes: 2 additions & 2 deletions addon/components/ember-th/sort-indicator/template.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{#if this.isSorted}}
<span data-test-sort-indicator class="et-sort-indicator {{if this.isSortedAsc 'is-ascending' 'is-descending'}}">
{{#if hasBlock}}
{{#if (has-block)}}
{{yield this.columnMeta}}
{{else}}
{{#if this.isMultiSorted}}
Expand All @@ -12,4 +12,4 @@

{{#if this.isSortable}}
<button data-test-sort-toggle class="et-sort-toggle et-speech-only">Toggle Sort</button>
{{/if}}
{{/if}}
2 changes: 1 addition & 1 deletion addon/components/ember-th/template.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{#if hasBlock}}
{{#if (has-block)}}
{{yield this.columnValue this.columnMeta this.rowMeta}}
{{else}}
{{this.columnValue.name}}
Expand Down
2 changes: 1 addition & 1 deletion addon/components/ember-thead/template.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#each this.wrappedRows as |api|}}
{{#if hasBlock}}
{{#if (has-block)}}
{{yield (hash
cells=api.cells
isHeader=api.isHeader
Expand Down
2 changes: 1 addition & 1 deletion addon/components/ember-tr/template.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#each this.cells as |api|}}
{{#if hasBlock}}
{{#if (has-block)}}
{{#if this.isHeader}}
{{yield (hash
columnValue=api.columnValue
Expand Down

0 comments on commit 3a06e58

Please sign in to comment.