diff --git a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts index 55506c7cc2..dfa52843e3 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts +++ b/ui-ngx/src/app/modules/home/components/attribute/attribute-table.component.ts @@ -250,7 +250,7 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI resetSortAndFilter(update: boolean = true) { const entityType = this.entityIdValue.entityType; - if (entityType === EntityType.DEVICE || entityType === EntityType.ENTITY_VIEW) { + if (entityType === EntityType.DEVICE || entityType === EntityType.ENTITY_VIEW || entityType === EntityType.EDGE) { this.attributeScopes = Object.keys(AttributeScope); this.attributeScopeSelectionReadonly = false; } else { diff --git a/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts b/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts index af39cd4ed9..a1a3f27372 100644 --- a/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts +++ b/ui-ngx/src/app/modules/home/pages/edge/edge.component.ts @@ -32,10 +32,10 @@ import { EntityTableConfig } from "@home/models/entity/entities-table-config.mod templateUrl: './edge.component.html', styleUrls: ['./edge.component.scss'] }) - -export class EdgeComponent extends EntityComponent{ +export class EdgeComponent extends EntityComponent { entityType = EntityType; + edgeScope: 'tenant' | 'customer' | 'customer_user'; constructor(protected store: Store, @@ -138,5 +138,4 @@ export class EdgeComponent extends EntityComponent{ } return str.concat(this.generateSecret(length - str.length)); } - } diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index cf22707d93..4fe9ac790d 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -1100,7 +1100,11 @@ "details": "Entity details", "no-entities-prompt": "No entities found", "no-data": "No data to display", - "columns-to-display": "Columns to Display" + "columns-to-display": "Columns to Display", + "type-edge": "Edge", + "type-edges": "Edges", + "list-of-edges": "{ count, plural, 1 {One edge} other {List of # edges} }", + "edge-name-starts-with": "Edges whose names start with '{{prefix}}'" }, "entity-field": { "created-time": "Created time",