Skip to content

Commit

Permalink
Change hasBlock to hasTemplate to avoid conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Jul 12, 2021
1 parent 2d07629 commit 2c97daa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/components/flash-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class FlashMessage extends Component {
exiting;

@bool('template')
hasBlock;
hasTemplate;

@computed('messageStyle')
get _defaultMessageStylePrefix() {
Expand Down
2 changes: 1 addition & 1 deletion addon/templates/components/flash-message.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{did-insert this.onDidInsert}}
{{will-destroy this.onWillDestroy}}
>
{{#if hasBlock}}
{{#if hasTemplate}}
{{yield this this.flash (action "onClose")}}
{{else}}
{{this.flash.message}}
Expand Down

0 comments on commit 2c97daa

Please sign in to comment.