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

Commit

Permalink
Moved the primary action button to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
Katja Maenpaa committed Jul 13, 2016
1 parent 9831e20 commit 97ce1ad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions app/templates/components/edit-panel.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
{{yield}}
</div>
<div class="panel-footer">
{{#unless editPanelProps.hideCancelButton}}
{{#if editPanelProps.cancelButtonText}}
<button class="btn btn-default warning" {{action 'cancel'}}>{{editPanelProps.cancelButtonText}}</button>
{{else}}
<button class="btn btn-default warning" {{action 'cancel'}}>{{t 'buttons.cancel'}}</button>
{{/if}}
{{/unless}}
{{#if editPanelProps.showUpdateButton}}
{{#if editPanelProps.disabledAction}}
<button class="btn btn-primary on-white disabled-btn" {{action 'disabledAction'}}>{{editPanelProps.updateButtonText}}</button>
Expand All @@ -12,13 +19,6 @@
</button>
{{/if}}
{{/if}}
{{#unless editPanelProps.hideCancelButton}}
{{#if editPanelProps.cancelButtonText}}
<button class="btn btn-default warning" {{action 'cancel'}}>{{editPanelProps.cancelButtonText}}</button>
{{else}}
<button class="btn btn-default warning" {{action 'cancel'}}>{{t 'buttons.cancel'}}</button>
{{/if}}
{{/unless}}
{{#each editPanelProps.additionalButtons as |button|}}
<button class="{{button.class}}" {{action 'fireButtonAction' button.buttonAction}}>
{{#if button.buttonIcon}}
Expand Down
6 changes: 3 additions & 3 deletions app/templates/components/modal-dialog.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
{{yield}}
</div>
<div class="modal-footer">
{{#unless hideUpdateButton}}
<button class="btn btn-primary on-white {{updateButtonClass}}" {{action "updateAction" }} disabled={{isUpdateDisabled}}>{{ updateButtonText }}</button>
{{/unless}}
{{#unless hideCancelButton}}
<button class="btn btn-default warning" {{action "cancelAction"}}>{{cancelBtnText}}</button>
{{/unless}}
{{#unless hideUpdateButton}}
<button class="btn btn-primary on-white {{updateButtonClass}}" {{action "updateAction" }} disabled={{isUpdateDisabled}}>{{ updateButtonText }}</button>
{{/unless}}
</div>
</div>
</div>
Expand Down

0 comments on commit 97ce1ad

Please sign in to comment.