Skip to content

Commit

Permalink
Merge pull request #134 from querqy/fix/swap_confirm_button_colors
Browse files Browse the repository at this point in the history
Swap colors of modals so that OK Button is green and Cancel Button red.
  • Loading branch information
dobestler authored Dec 13, 2023
2 parents 40ea85b + e8d92e9 commit f94b413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ <h4 class="modal-title" id="modal-basic-title">{{ title }}</h4>
<ng-content></ng-content>
</div>
<div class="modal-footer btn-toolbar">
<button class="btn btn-danger mr-2" type="button" (click)="ok()">
<button class="btn btn-success" type="button" (click)="ok()">
{{ okLabel }}
</button>
<button class="btn btn-success" type="button" (click)="cancel()">
<button class="btn btn-danger mr-2" type="button" (click)="cancel()">
{{ cancelLabel }}
</button>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/app/components/modal/modal-copy.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ <h4 class="modal-title" id="modal-basic-title">{{ title }}</h4>
</div>
</div>
<div class="modal-footer btn-toolbar">
<button class="btn btn-danger mr-2" type="button"
<button class="btn btn-success" type="button"
(click)="ok()"
[disabled]="selectedSolrIndexId === solrService.currentSolrIndexId"
>
{{ okLabel }}
</button>
<button class="btn btn-success" type="button" (click)="cancel()">
<button class="btn btn-danger mr-2" type="button" (click)="cancel()">
{{ cancelLabel }}
</button>
</div>
Expand Down

0 comments on commit f94b413

Please sign in to comment.