Skip to content

Commit

Permalink
Update modal buttons to be more consistent and disabled if pristine
Browse files Browse the repository at this point in the history
  • Loading branch information
cazcam34 committed Sep 23, 2024
1 parent bc202be commit d3862db
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ <h4 class="modal-title">{{title}}</h4>
</div>

<div class="modal-footer">
<button type="button" class="btn btn-primary" (click)="close()">
Ok
</button>
<button *ngIf="showCancel" type="button" class="btn btn-primary" (click)="dismiss()">
<button *ngIf="showCancel" type="button" class="btn btn-accent-2" (click)="dismiss()">
Cancel
</button>
<button type="button" class="btn btn-primary" (click)="close()" [disabled]="form.pristine">
Save
</button>
</div>

0 comments on commit d3862db

Please sign in to comment.