Browse Source

Fix Api Usage State alias

pull/3760/head
Igor Kulikov 6 years ago
parent
commit
449cb5941d
  1. 5
      ui-ngx/src/app/modules/home/components/entity/entity-filter.component.ts
  2. 1
      ui-ngx/src/app/shared/models/alias.models.ts

5
ui-ngx/src/app/modules/home/components/entity/entity-filter.component.ts

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

1
ui-ngx/src/app/shared/models/alias.models.ts

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

Loading…
Cancel
Save