From 720d9d56872799a50d43fb2cebc0e1e239ad9ae6 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Tue, 31 Jan 2023 12:39:17 +0700 Subject: [PATCH] RED-4979 --- apps/red-ui/src/app/translations/default-colors-translations.ts | 1 + apps/red-ui/src/assets/i18n/redact/de.json | 1 + apps/red-ui/src/assets/i18n/redact/en.json | 1 + apps/red-ui/src/assets/i18n/scm/de.json | 1 + apps/red-ui/src/assets/i18n/scm/en.json | 1 + libs/red-domain/src/lib/colors/default-color-type.ts | 1 + libs/red-domain/src/lib/colors/default-colors.model.ts | 2 ++ 7 files changed, 8 insertions(+) diff --git a/apps/red-ui/src/app/translations/default-colors-translations.ts b/apps/red-ui/src/app/translations/default-colors-translations.ts index cee86b247..65a1e4ac6 100644 --- a/apps/red-ui/src/app/translations/default-colors-translations.ts +++ b/apps/red-ui/src/app/translations/default-colors-translations.ts @@ -13,4 +13,5 @@ export const defaultColorsTranslations: { readonly [key in DefaultColorType]?: s hintColor: _('default-colors-screen.types.hintColor'), redactionColor: _('default-colors-screen.types.redactionColor'), skippedColor: _('default-colors-screen.types.skippedColor'), + appliedRedactionColor: _('default-colors-screen.types.appliedRedactionColor'), } as const; diff --git a/apps/red-ui/src/assets/i18n/redact/de.json b/apps/red-ui/src/assets/i18n/redact/de.json index eaaee0c20..317a036ff 100644 --- a/apps/red-ui/src/assets/i18n/redact/de.json +++ b/apps/red-ui/src/assets/i18n/redact/de.json @@ -634,6 +634,7 @@ }, "types": { "analysisColor": "Analyse", + "appliedRedactionColor": "Applied Redaction", "dictionaryRequestColor": "Wörterbuch", "hintColor": "", "ignoredHintColor": "Ignorierter Hinweis", diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json index a385d2398..8d34f5731 100644 --- a/apps/red-ui/src/assets/i18n/redact/en.json +++ b/apps/red-ui/src/assets/i18n/redact/en.json @@ -634,6 +634,7 @@ }, "types": { "analysisColor": "Analysis", + "appliedRedactionColor": "Applied Redaction", "dictionaryRequestColor": "Dictionary Request", "hintColor": "Hint", "ignoredHintColor": "Ignored Hint", diff --git a/apps/red-ui/src/assets/i18n/scm/de.json b/apps/red-ui/src/assets/i18n/scm/de.json index 8b7372f39..ed28e6911 100644 --- a/apps/red-ui/src/assets/i18n/scm/de.json +++ b/apps/red-ui/src/assets/i18n/scm/de.json @@ -634,6 +634,7 @@ }, "types": { "analysisColor": "Analyse", + "appliedRedactionColor": "Applied Redaction", "dictionaryRequestColor": "Wörterbuch", "hintColor": "", "ignoredHintColor": "Ignorierter Hinweis", diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json index 0fdef5d49..9d87c1bc3 100644 --- a/apps/red-ui/src/assets/i18n/scm/en.json +++ b/apps/red-ui/src/assets/i18n/scm/en.json @@ -634,6 +634,7 @@ }, "types": { "analysisColor": "Analysis", + "appliedRedactionColor": "Applied Redaction", "dictionaryRequestColor": "Dictionary Request", "hintColor": "Hint", "ignoredHintColor": "Ignored Hint", diff --git a/libs/red-domain/src/lib/colors/default-color-type.ts b/libs/red-domain/src/lib/colors/default-color-type.ts index af086eed6..894a61215 100644 --- a/libs/red-domain/src/lib/colors/default-color-type.ts +++ b/libs/red-domain/src/lib/colors/default-color-type.ts @@ -10,6 +10,7 @@ export const DefaultColorTypes = [ 'redactionColor', 'ignoredHintColor', 'skippedColor', + 'appliedRedactionColor', ] as const; export type DefaultColorType = typeof DefaultColorTypes[number]; diff --git a/libs/red-domain/src/lib/colors/default-colors.model.ts b/libs/red-domain/src/lib/colors/default-colors.model.ts index 1eecce024..95fd55022 100644 --- a/libs/red-domain/src/lib/colors/default-colors.model.ts +++ b/libs/red-domain/src/lib/colors/default-colors.model.ts @@ -14,6 +14,7 @@ export class DefaultColors extends Entity implements IDefaultCol readonly redactionColor: string; readonly ignoredHintColor: string; readonly skippedColor: string; + readonly appliedRedactionColor: string; readonly routerLink = ''; @@ -31,6 +32,7 @@ export class DefaultColors extends Entity implements IDefaultCol this.redactionColor = entity.redactionColor; this.ignoredHintColor = entity.ignoredHintColor; this.skippedColor = entity.skippedColor; + this.appliedRedactionColor = entity.appliedRedactionColor; } get id(): string {