Skip to content

Commit

Permalink
reset button switched to clear and disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jessewashburn committed Nov 15, 2024
1 parent d9c3f55 commit 22b7379
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/feedback/feedback.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@
<mat-form-field class="font-size-1">
<input matInput i18n-placeholder placeholder="Type title to search..." [(ngModel)]="titleSearch">
</mat-form-field>
<button mat-button (click)="resetSearch()"><span i18n>Reset</span></button>
</ng-template>
<button mat-button (click)="resetSearch()"
[disabled]="feedback.filter.trim() === '' && filter.type === '' && filter.status === '' && titleSearch.trim() === ''">
<span i18n>Clear</span>
</button>
</ng-template>
</mat-toolbar>
<div class="space-container">
<mat-toolbar>
Expand Down

0 comments on commit 22b7379

Please sign in to comment.