From 7f8d2552cf143487cab209acfa6a6667ae0953da Mon Sep 17 00:00:00 2001 From: Maksym Tsymbarov Date: Wed, 25 Mar 2026 00:27:40 +0100 Subject: [PATCH] Additional fixes --- .../rule-node/action/create-relation-config.component.ts | 4 ---- .../rule-node/action/delete-relation-config.component.ts | 4 ---- .../transformation/deduplication-config.component.ts | 4 ---- .../pages/notification/sent/sent-error-dialog.component.html | 2 +- .../pages/notification/sent/sent-error-dialog.component.ts | 3 ++- 5 files changed, 3 insertions(+), 14 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts b/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts index 89e2e3be5d..1939b4abbf 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts @@ -105,8 +105,4 @@ export class CreateRelationConfigComponent extends RuleNodeConfigurationComponen configuration.entityTypePattern = configuration.entityTypePattern ? configuration.entityTypePattern.trim() : null; return configuration; } - - getDirectionTypeTranslations(type: string) { - return this.directionTypeTranslations.get(type as EntitySearchDirection); - } } diff --git a/ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts b/ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts index b32dc1f157..d41def61d3 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/rule-node/action/delete-relation-config.component.ts @@ -99,8 +99,4 @@ export class DeleteRelationConfigComponent extends RuleNodeConfigurationComponen configuration.entityNamePattern = configuration.entityNamePattern ? configuration.entityNamePattern.trim() : null; return configuration; } - - getDirectionTypeTranslations(type: string) { - return this.directionTypeTranslations.get(type as EntitySearchDirection); - } } diff --git a/ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts b/ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts index f37b71299f..1efcc0351a 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/rule-node/transformation/deduplication-config.component.ts @@ -77,8 +77,4 @@ export class DeduplicationConfigComponent extends RuleNodeConfigurationComponent protected validatorTriggers(): string[] { return ['strategy']; } - - getDeduplicationStrategiesTranslations(strategy: string) { - return this.deduplicationStrategiesTranslations.get(strategy as FetchMode); - } } diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html index 53f554e706..1c98892b60 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.html @@ -29,7 +29,7 @@
{{ NotificationDeliveryMethodInfoMap.get(errorStat.key).name | translate }}
- @for (error of errorStatEntries; track error) { + @for (error of (errorStat.value | keyvalue); track error) {
{{ error.key }} diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts index a81bce6eae..1dfc3b44ca 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-error-dialog.component.ts @@ -50,7 +50,8 @@ export class SentErrorDialogComponent extends DialogComponent).map(([key, value]) => ({ key, value })); } + this.errorStatEntries = (Object.entries(this.errorStats) as Array<[NotificationDeliveryMethod, { [k: string]: string }]>).map(([key, value]) => ({ key, value })); + } cancel(): void { this.dialogRef.close(null);