Browse Source

UI: Added client/server/shared attribute to key filter

pull/9265/head
Artem Dzhereleiko 3 years ago
parent
commit
c450ced074
  1. 3
      ui-ngx/src/app/modules/home/components/filter/key-filter-dialog.component.ts
  2. 5
      ui-ngx/src/app/shared/models/query/query.models.ts
  3. 5
      ui-ngx/src/assets/locale/locale.constant-en_US.json

3
ui-ngx/src/app/modules/home/components/filter/key-filter-dialog.component.ts

@ -70,7 +70,8 @@ export class KeyFilterDialogComponent extends
entityKeyTypes =
this.data.telemetryKeysOnly ?
[EntityKeyType.ATTRIBUTE, EntityKeyType.TIME_SERIES, EntityKeyType.CONSTANT] :
[EntityKeyType.ENTITY_FIELD, EntityKeyType.ATTRIBUTE, EntityKeyType.TIME_SERIES];
[EntityKeyType.ENTITY_FIELD, EntityKeyType.ATTRIBUTE, EntityKeyType.CLIENT_ATTRIBUTE,
EntityKeyType.SERVER_ATTRIBUTE, EntityKeyType.SHARED_ATTRIBUTE, EntityKeyType.TIME_SERIES];
entityKeyTypeTranslations = entityKeyTypeTranslationMap;

5
ui-ngx/src/app/shared/models/query/query.models.ts

@ -54,7 +54,10 @@ export const entityKeyTypeTranslationMap = new Map<EntityKeyType, string>(
[EntityKeyType.ATTRIBUTE, 'filter.key-type.attribute'],
[EntityKeyType.TIME_SERIES, 'filter.key-type.timeseries'],
[EntityKeyType.ENTITY_FIELD, 'filter.key-type.entity-field'],
[EntityKeyType.CONSTANT, 'filter.key-type.constant']
[EntityKeyType.CONSTANT, 'filter.key-type.constant'],
[EntityKeyType.CLIENT_ATTRIBUTE, 'filter.key-type.client-attribute'],
[EntityKeyType.SERVER_ATTRIBUTE, 'filter.key-type.server-attribute'],
[EntityKeyType.SHARED_ATTRIBUTE, 'filter.key-type.shared-attribute']
]
);

5
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -2595,7 +2595,10 @@
"attribute": "Attribute",
"timeseries": "Timeseries",
"entity-field": "Entity field",
"constant": "Constant"
"constant": "Constant",
"client-attribute": "Client attribute",
"server-attribute": "Server attribute",
"shared-attribute": "Shared attribute"
},
"value-type": {
"value-type": "Value type",

Loading…
Cancel
Save