Add disabled search button if missing values

This commit is contained in:
Patrick Gebhardt 2020-06-19 14:37:27 +02:00
parent cf611ce8c4
commit 615727e09d

View File

@ -36,7 +36,7 @@
</div>
</section>
<button (click)="onSearch()" class="search-btn" color="primary" mat-flat-button>Search
<button (click)="onSearch()" [disabled]="!from || !to" class="search-btn" color="primary" mat-flat-button>Search
<mat-icon matSuffix>search</mat-icon>
</button>
</mat-card>