Skip to content

Commit

Permalink
fix: convert deprecated hasBlock to helper syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Apr 2, 2021
1 parent 726358f commit 0353829
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions addon/components/x-toggle-label/template.hbs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{{#if this.show}}
<label
for={{this.for}}
class='toggle-text toggle-prefix {{this.labelType}}'
{{on 'click' (action 'clickLabel')}}
class="toggle-text toggle-prefix {{this.labelType}}"
...attributes
>
{{#if hasBlock}}
{{on 'click' (action 'clickLabel')}}
>
{{#if (has-block)}}
{{yield this.label}}
{{else}}
{{this.label}}
{{/if}}
</label>
{{/if}}
{{/if}}
2 changes: 1 addition & 1 deletion addon/components/x-toggle/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{on 'focusout' this.handleFocusOut}}
{{on 'keydown' this.spacebarToggle}}
>
{{#if hasBlock}}
{{#if (has-block)}}
{{yield
(hash
switch=(component
Expand Down

0 comments on commit 0353829

Please sign in to comment.