Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
refactor additional buttons panel.hbs
Browse files Browse the repository at this point in the history
-bind-attr
-removed deprecated scope
  • Loading branch information
billybonks committed Sep 28, 2015
1 parent b22ccbd commit 36b8f3b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/templates/panel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<button class="btn btn-default warning" {{action "cancel"}}>Cancel</button>
{{/if}}
{{/unless}}
{{#each additionalButtons}}
<button {{bind-attr class="class"}} {{action buttonAction}}>
{{#if buttonIcon}}
<span {{bind-attr class="buttonIcon"}}></span>
{{#each button in additionalButtons}}
<button class="{{button.class}}" {{action button.buttonAction}}>
{{#if buttonbuttonIcon}}
<span class="{{button.buttonIcon}}"></span>
{{/if}}
{{buttonText}}
{{button.buttonText}}
</button>
{{/each}}
</div>
Expand Down

0 comments on commit 36b8f3b

Please sign in to comment.