Fix Api Usage State alias

This commit is contained in:
Igor Kulikov 2020-11-20 15:17:31 +02:00
parent ffdf56222e
commit 449cb5941d
2 changed files with 5 additions and 1 deletions

View File

@ -147,6 +147,9 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit {
entityViewNameFilter: [filter ? filter.entityViewNameFilter : '', []], entityViewNameFilter: [filter ? filter.entityViewNameFilter : '', []],
}); });
break; break;
case AliasFilterType.apiUsageState:
this.filterFormGroup = this.fb.group({});
break;
case AliasFilterType.relationsQuery: case AliasFilterType.relationsQuery:
case AliasFilterType.assetSearchQuery: case AliasFilterType.assetSearchQuery:
case AliasFilterType.deviceSearchQuery: case AliasFilterType.deviceSearchQuery:
@ -190,7 +193,7 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit {
private filterTypeChanged(type: AliasFilterType) { private filterTypeChanged(type: AliasFilterType) {
let resolveMultiple = true; let resolveMultiple = true;
if (type === AliasFilterType.singleEntity || type === AliasFilterType.stateEntity) { if (type === AliasFilterType.singleEntity || type === AliasFilterType.stateEntity || type === AliasFilterType.apiUsageState) {
resolveMultiple = false; resolveMultiple = false;
} }
if (this.resolveMultiple !== resolveMultiple) { if (this.resolveMultiple !== resolveMultiple) {

View File

@ -108,6 +108,7 @@ export interface EntitySearchQueryFilter {
fetchLastLevelOnly?: boolean; fetchLastLevelOnly?: boolean;
} }
// tslint:disable-next-line:no-empty-interface
export interface ApiUsageStateFilter { export interface ApiUsageStateFilter {
} }