Savings account actions missed (#1611)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
85e3d99e9f
commit
5275657752
@@ -10,7 +10,7 @@
|
||||
|
||||
<div fxLayout="row">
|
||||
<mat-form-field fxFlex>
|
||||
<mat-label>Filter</mat-label>
|
||||
<mat-label>{{ 'labels.inputs.Filter' | translate }}</mat-label>
|
||||
<input matInput (keyup)="applyFilter($event.target.value)">
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
@@ -43,11 +43,13 @@ export class ClientsComponent implements OnInit {
|
||||
* Searches server for query and resource.
|
||||
*/
|
||||
search(value: string) {
|
||||
this.searchService.getSearchResults(value, 'clients').subscribe((data: any) => {
|
||||
this.dataSource = new MatTableDataSource(data);
|
||||
this.existsClientsToFilter = (data.length > 0);
|
||||
this.notExistsClientsToFilter = !this.existsClientsToFilter;
|
||||
this.moreClientsToFilter = (data.length > 50);
|
||||
});
|
||||
if (value !== '') {
|
||||
this.searchService.getSearchResults(value, 'clients').subscribe((data: any) => {
|
||||
this.dataSource = new MatTableDataSource(data);
|
||||
this.existsClientsToFilter = (data.length > 0);
|
||||
this.notExistsClientsToFilter = !this.existsClientsToFilter;
|
||||
this.moreClientsToFilter = (data.length > 50);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user