Commit 449cb5941d06ce496bc8104eeb03f18bea2be708

Authored by Igor Kulikov
1 parent ffdf5622

Fix Api Usage State alias

@@ -147,6 +147,9 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit { @@ -147,6 +147,9 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit {
147 entityViewNameFilter: [filter ? filter.entityViewNameFilter : '', []], 147 entityViewNameFilter: [filter ? filter.entityViewNameFilter : '', []],
148 }); 148 });
149 break; 149 break;
  150 + case AliasFilterType.apiUsageState:
  151 + this.filterFormGroup = this.fb.group({});
  152 + break;
150 case AliasFilterType.relationsQuery: 153 case AliasFilterType.relationsQuery:
151 case AliasFilterType.assetSearchQuery: 154 case AliasFilterType.assetSearchQuery:
152 case AliasFilterType.deviceSearchQuery: 155 case AliasFilterType.deviceSearchQuery:
@@ -190,7 +193,7 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit { @@ -190,7 +193,7 @@ export class EntityFilterComponent implements ControlValueAccessor, OnInit {
190 193
191 private filterTypeChanged(type: AliasFilterType) { 194 private filterTypeChanged(type: AliasFilterType) {
192 let resolveMultiple = true; 195 let resolveMultiple = true;
193 - if (type === AliasFilterType.singleEntity || type === AliasFilterType.stateEntity) { 196 + if (type === AliasFilterType.singleEntity || type === AliasFilterType.stateEntity || type === AliasFilterType.apiUsageState) {
194 resolveMultiple = false; 197 resolveMultiple = false;
195 } 198 }
196 if (this.resolveMultiple !== resolveMultiple) { 199 if (this.resolveMultiple !== resolveMultiple) {
@@ -108,6 +108,7 @@ export interface EntitySearchQueryFilter { @@ -108,6 +108,7 @@ export interface EntitySearchQueryFilter {
108 fetchLastLevelOnly?: boolean; 108 fetchLastLevelOnly?: boolean;
109 } 109 }
110 110
  111 +// tslint:disable-next-line:no-empty-interface
111 export interface ApiUsageStateFilter { 112 export interface ApiUsageStateFilter {
112 113
113 } 114 }