From d5b9e39f685ceb6b805be7966c0fbd063ecb27b6 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Thu, 11 Dec 2025 12:24:21 +0200 Subject: [PATCH 1/2] Fixed profile saves triggers the saved device configuration without changes --- .../home/models/entity/entities-table-config.models.ts | 4 ++-- .../home/models/entity/entity-table-component.models.ts | 2 +- ui-ngx/src/app/modules/home/pages/asset/asset.component.ts | 2 +- ui-ngx/src/app/modules/home/pages/device/device.component.ts | 2 +- ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts b/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts index 5117aa6430..75c821cfcf 100644 --- a/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts +++ b/ui-ngx/src/app/modules/home/models/entity/entities-table-config.models.ts @@ -236,9 +236,9 @@ export class EntityTableConfig, P extends PageLink = P this.table = null; } - updateData(closeDetails = false) { + updateData(closeDetails = false, reloadEntity = true) { if (this.table) { - this.table.updateData(closeDetails); + this.table.updateData(closeDetails, reloadEntity); } else if (this.entityDetailsPage) { this.entityDetailsPage.reload(); } diff --git a/ui-ngx/src/app/modules/home/models/entity/entity-table-component.models.ts b/ui-ngx/src/app/modules/home/models/entity/entity-table-component.models.ts index 6317f267ca..e3d0bb19e6 100644 --- a/ui-ngx/src/app/modules/home/models/entity/entity-table-component.models.ts +++ b/ui-ngx/src/app/modules/home/models/entity/entity-table-component.models.ts @@ -68,7 +68,7 @@ export interface IEntitiesTableComponent { addEnabled(): boolean; clearSelection(): void; - updateData(closeDetails?: boolean): void; + updateData(closeDetails?: boolean, reloadEntity?: boolean): void; onRowClick($event: Event, entity): void; toggleEntityDetails($event: Event, entity); addEntity($event: Event): void; diff --git a/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts b/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts index 346f310d47..d89068284e 100644 --- a/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts +++ b/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts @@ -100,6 +100,6 @@ export class AssetComponent extends EntityComponent { } onAssetProfileUpdated() { - this.entitiesTableConfig.updateData(false); + this.entitiesTableConfig.updateData(false,false); } } diff --git a/ui-ngx/src/app/modules/home/pages/device/device.component.ts b/ui-ngx/src/app/modules/home/pages/device/device.component.ts index 85c3ae8a2c..1886962b6b 100644 --- a/ui-ngx/src/app/modules/home/pages/device/device.component.ts +++ b/ui-ngx/src/app/modules/home/pages/device/device.component.ts @@ -142,7 +142,7 @@ export class DeviceComponent extends EntityComponent { } onDeviceProfileUpdated() { - this.entitiesTableConfig.updateData(false); + this.entitiesTableConfig.updateData(false, false); } onDeviceProfileChanged(deviceProfile: DeviceProfileInfo) { diff --git a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts index 711075885a..e18b28e263 100644 --- a/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts +++ b/ui-ngx/src/app/modules/home/pages/tenant/tenant.component.ts @@ -101,6 +101,6 @@ export class TenantComponent extends ContactBasedComponent { } onTenantProfileUpdated() { - this.entitiesTableConfig.updateData(false); + this.entitiesTableConfig.updateData(false, false); } } From 65073afc0d7a1b0ca7a859c0439e8b26d214d520 Mon Sep 17 00:00:00 2001 From: Vladyslav Prykhodko Date: Thu, 11 Dec 2025 13:33:56 +0200 Subject: [PATCH 2/2] Update style asset.component.ts --- ui-ngx/src/app/modules/home/pages/asset/asset.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts b/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts index d89068284e..50023cb78c 100644 --- a/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts +++ b/ui-ngx/src/app/modules/home/pages/asset/asset.component.ts @@ -100,6 +100,6 @@ export class AssetComponent extends EntityComponent { } onAssetProfileUpdated() { - this.entitiesTableConfig.updateData(false,false); + this.entitiesTableConfig.updateData(false, false); } }