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 f8df6cc13b..654c75f515 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 @@ -26,7 +26,7 @@
-
{{ notificationDeliveryMethodErrorTranslateMap.get(errorStat.key) | translate }}
+
{{ notificationDeliveryMethodTranslateMap.get(errorStat.key) | translate }}
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 4a8d125a94..7ce286717a 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 @@ -20,7 +20,11 @@ import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { Router } from '@angular/router'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; -import { NotificationDeliveryMethod, NotificationRequest } from '@shared/models/notification.models'; +import { + NotificationDeliveryMethod, + NotificationDeliveryMethodTranslateMap, + NotificationRequest +} from '@shared/models/notification.models'; export interface NotificationRequestErrorDialogData { notificationRequest: NotificationRequest; @@ -35,12 +39,7 @@ export class SentErrorDialogComponent extends DialogComponent([ - [NotificationDeliveryMethod.WEB, 'notification.delivery-method.web-failed-sent'], - [NotificationDeliveryMethod.SMS, 'notification.delivery-method.sms-failed-sent'], - [NotificationDeliveryMethod.EMAIL, 'notification.delivery-method.email-failed-sent'], - [NotificationDeliveryMethod.SLACK, 'notification.delivery-method.slack-failed-sent'], - ]); + notificationDeliveryMethodTranslateMap = NotificationDeliveryMethodTranslateMap; constructor(protected store: Store, protected router: Router, diff --git a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts index a1792420ec..290774b6e9 100644 --- a/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/notification/sent/sent-table-config.resolver.ts @@ -172,7 +172,7 @@ export class SentTableConfigResolver implements Resolve - ${this.translate.instant('notification.fails', {count: countError})} + ${this.translate.instant('notification.fails', {count: countError})} > `; } 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 b3ee727a4b..a388884963 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -2785,16 +2785,12 @@ "delivery-method": { "delivery-method": "Delivery method", "email": "Email", - "email-failed-sent": "Email", "email-preview": "Email notification preview", "slack": "Slack", - "slack-failed-sent": "Slack", "slack-preview": "Slack notification preview", "sms": "SMS", - "sms-failed-sent": "SMS", "sms-preview": "SMS notification preview", "web": "Web", - "web-failed-sent": "Web", "web-preview": "Web notification preview" }, "delivery-methods": "Delivery methods",