From caaf47525471478ff4abafec7cfd6f4e6384d136 Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Tue, 30 Jun 2026 11:29:42 +0200 Subject: [PATCH] Replaced redundant trackBy functions with direct @for tracking --- ...field-geofencing-zone-groups-panel.component.html | 2 +- ...d-field-geofencing-zone-groups-panel.component.ts | 4 ---- .../components/entity/entities-table.component.html | 2 +- .../components/entity/entities-table.component.ts | 4 ---- .../alarm/device-profile-alarms.component.html | 2 +- .../profile/alarm/device-profile-alarms.component.ts | 8 -------- .../lwm2m-bootstrap-config-servers.component.html | 2 +- .../lwm2m-bootstrap-config-servers.component.ts | 4 ---- ...m-observe-attr-telemetry-instances.component.html | 2 +- ...m2m-observe-attr-telemetry-instances.component.ts | 4 ---- ...m-observe-attr-telemetry-resources.component.html | 2 +- ...m2m-observe-attr-telemetry-resources.component.ts | 4 ---- .../lwm2m-observe-attr-telemetry.component.html | 2 +- .../lwm2m/lwm2m-observe-attr-telemetry.component.ts | 4 ---- .../queue/tenant-profile-queues.component.html | 2 +- .../profile/queue/tenant-profile-queues.component.ts | 6 ------ .../vc/auto-commit-settings.component.html | 2 +- .../components/vc/auto-commit-settings.component.ts | 4 ---- .../cards/aggregated-data-keys-panel.component.html | 2 +- .../cards/aggregated-data-keys-panel.component.ts | 4 ---- .../basic/chart/comparison-keys-table.component.html | 2 +- .../basic/chart/comparison-keys-table.component.ts | 4 ---- .../basic/common/data-keys-panel.component.html | 2 +- .../config/basic/common/data-keys-panel.component.ts | 4 ---- .../widget/config/datasources.component.html | 2 +- .../widget/config/datasources.component.ts | 5 ----- .../lib/alarm/alarms-table-widget.component.html | 6 +++--- .../lib/alarm/alarms-table-widget.component.ts | 8 -------- .../lib/entity/entities-table-widget.component.html | 6 +++--- .../lib/entity/entities-table-widget.component.ts | 8 -------- .../lib/home-page/edit-links-dialog.component.html | 2 +- .../lib/home-page/edit-links-dialog.component.ts | 4 ---- .../indicator/battery-level-widget.component.html | 2 +- .../lib/indicator/battery-level-widget.component.ts | 4 ---- .../cards/api-usage-widget-settings.component.html | 2 +- .../cards/api-usage-widget-settings.component.ts | 4 ---- .../cards/label-widget-settings.component.html | 2 +- .../cards/label-widget-settings.component.ts | 4 ---- .../settings/chart/flot-key-settings.component.html | 2 +- .../settings/chart/flot-key-settings.component.ts | 4 ---- .../chart/flot-widget-settings.component.html | 2 +- .../settings/chart/flot-widget-settings.component.ts | 4 ---- .../time-series-chart-states-panel.component.html | 2 +- .../time-series-chart-states-panel.component.ts | 4 ---- ...time-series-chart-thresholds-panel.component.html | 2 +- .../time-series-chart-thresholds-panel.component.ts | 4 ---- .../time-series-chart-y-axes-panel.component.html | 2 +- .../time-series-chart-y-axes-panel.component.ts | 4 ---- .../settings/common/color-range-list.component.html | 4 ++-- .../settings/common/color-range-list.component.ts | 8 -------- .../dynamic-form/dynamic-form-array.component.html | 2 +- .../dynamic-form/dynamic-form-array.component.ts | 4 ---- .../dynamic-form-properties.component.html | 2 +- .../dynamic-form-properties.component.ts | 4 ---- .../dynamic-form-select-items.component.html | 2 +- .../dynamic-form-select-items.component.ts | 4 ---- .../lib/settings/common/gradient.component.html | 4 ++-- .../widget/lib/settings/common/gradient.component.ts | 4 ---- .../map/additional-map-data-sources.component.html | 2 +- .../map/additional-map-data-sources.component.ts | 4 ---- .../common/map/map-data-layers.component.html | 2 +- .../settings/common/map/map-data-layers.component.ts | 4 ---- .../common/map/map-data-sources.component.html | 2 +- .../common/map/map-data-sources.component.ts | 4 ---- .../settings/common/map/map-layers.component.html | 2 +- .../lib/settings/common/map/map-layers.component.ts | 4 ---- .../digital-gauge-widget-settings.component.html | 2 +- .../gauge/digital-gauge-widget-settings.component.ts | 4 ---- .../gpio/gpio-control-widget-settings.component.html | 2 +- .../gpio/gpio-control-widget-settings.component.ts | 4 ---- .../gpio/gpio-panel-widget-settings.component.html | 2 +- .../gpio/gpio-panel-widget-settings.component.ts | 4 ---- ...e-multiple-attributes-key-settings.component.html | 2 +- ...ate-multiple-attributes-key-settings.component.ts | 4 ---- .../lib/timeseries-table-widget.component.html | 8 ++++---- .../widget/lib/timeseries-table-widget.component.ts | 12 ------------ .../app/modules/home/menu/menu-toggle.component.html | 2 +- .../app/modules/home/menu/menu-toggle.component.ts | 4 ---- .../app/modules/home/menu/side-menu.component.html | 2 +- .../src/app/modules/home/menu/side-menu.component.ts | 5 ----- .../models/entity/entity-table-component.models.ts | 1 - .../admin/two-factor-auth-settings.component.html | 2 +- .../admin/two-factor-auth-settings.component.ts | 4 ---- .../bundes/layout/mobile-layout.component.html | 2 +- .../mobile/bundes/layout/mobile-layout.component.ts | 4 ---- .../scada-symbol-behaviors.component.html | 2 +- .../scada-symbol-behaviors.component.ts | 4 ---- .../scada-symbol-metadata-tags.component.html | 2 +- .../scada-symbol-metadata-tags.component.ts | 4 ---- .../home/pages/security/security.component.html | 2 +- .../home/pages/security/security.component.ts | 4 ---- .../widget/widgets-bundle-widgets.component.html | 2 +- .../pages/widget/widgets-bundle-widgets.component.ts | 4 ---- .../components/grid/scroll-grid.component.html | 2 +- .../shared/components/grid/scroll-grid.component.ts | 4 ---- .../shared/components/js-func-modules.component.html | 2 +- .../shared/components/js-func-modules.component.ts | 4 ---- .../interval-options-config-panel.component.html | 2 +- .../time/interval-options-config-panel.component.ts | 4 ---- .../shared/components/toggle-header.component.html | 2 +- .../app/shared/components/toggle-header.component.ts | 4 ---- 101 files changed, 59 insertions(+), 288 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html index 2295c17ed1..2f370baa0f 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/geofencing-configuration/calculated-field-geofencing-zone-groups-panel.component.html @@ -112,7 +112,7 @@ cdkDropList cdkDropListOrientation="vertical" [cdkDropListDisabled]="!dragEnabled" (cdkDropListDropped)="keyDrop($event)"> - @for (keyControl of levelsFormArray().controls; track trackByKey; ) { + @for (keyControl of levelsFormArray().controls; track keyControl; ) {
- @for (actionDescriptor of alarm.actionCellButtons; track trackByActionCellDescriptionId($index, actionDescriptor)) { + @for (actionDescriptor of alarm.actionCellButtons; track actionDescriptor) { @if (actionDescriptor.icon) {