From efdeafd04dd00b02e114554b56bd0d4d06e768a2 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Thu, 8 Oct 2026 15:59:33 +0200 Subject: [PATCH] Fixed group chips overflow in entity tables and moved Manage agents to customer details panel (#16266) * Fixed group chips overflow in entity tables and moved Manage agents to customer details panel * Fixed license headers --- .../home/components/entity/entity-chips.component.html | 5 +++-- .../home/components/entity/entity-chips.component.scss | 6 +++++- .../home/pages/customer/customer.component.html | 8 ++++++++ .../modules/home/pages/customer/customer.component.ts | 4 ++++ .../pages/customer/customers-table-config.resolver.ts | 10 ---------- ui-ngx/src/assets/locale/locale.constant-en_US.json | 4 ++-- 6 files changed, 22 insertions(+), 15 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html index 8c370cdd5d..cf3970ef5d 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html @@ -1,11 +1,12 @@ @for (subEntity of subEntities; track subEntity) { - {{ subEntity.name | customTranslate }} diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss index ee4b487f32..045156fad3 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss +++ b/ui-ngx/src/app/modules/home/components/entity/entity-chips.component.scss @@ -1,11 +1,15 @@ // SPDX-FileCopyrightText: Copyright The ThingsBoard Authors -// SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc. +// SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1 :host { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; + width: 0; + min-width: 100%; a.tb-entity-chip { + max-width: 100%; padding: 4px 8px; border-radius: 12px; line-height: 16px; diff --git a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html index 3b8a08e04a..5dd48f45b3 100644 --- a/ui-ngx/src/app/modules/home/pages/customer/customer.component.html +++ b/ui-ngx/src/app/modules/home/pages/customer/customer.component.html @@ -60,6 +60,14 @@ {{'customer.manage-edges' | translate }} } + @if (resource.AGENT | hasGenericPermission: operation.READ) { + + } @if (resource.DASHBOARD | hasGenericPermission: operation.READ) {