|
@@ -77,15 +77,19 @@ export class CustomerListComponent
|
|
|
skip,
|
|
skip,
|
|
|
take,
|
|
take,
|
|
|
filter: {
|
|
filter: {
|
|
|
- emailAddress: {
|
|
|
|
|
- contains: this.searchTermControl.value,
|
|
|
|
|
- },
|
|
|
|
|
- lastName: {
|
|
|
|
|
- contains: this.searchTermControl.value,
|
|
|
|
|
- },
|
|
|
|
|
- postalCode: {
|
|
|
|
|
- contains: this.searchTermControl.value,
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ ...(this.searchTermControl.value
|
|
|
|
|
+ ? {
|
|
|
|
|
+ emailAddress: {
|
|
|
|
|
+ contains: this.searchTermControl.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ lastName: {
|
|
|
|
|
+ contains: this.searchTermControl.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ postalCode: {
|
|
|
|
|
+ contains: this.searchTermControl.value,
|
|
|
|
|
+ },
|
|
|
|
|
+ }
|
|
|
|
|
+ : {}),
|
|
|
...this.filters.createFilterInput(),
|
|
...this.filters.createFilterInput(),
|
|
|
},
|
|
},
|
|
|
filterOperator: this.searchTermControl.value ? LogicalOperator.OR : LogicalOperator.AND,
|
|
filterOperator: this.searchTermControl.value ? LogicalOperator.OR : LogicalOperator.AND,
|