From 0bc3b86d8d4ec4cf770d0aa12ae1301fd1f72915 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Tue, 19 Dec 2023 13:32:17 +0200 Subject: [PATCH] RED-8103: using the type display name and removed "". --- .../app/modules/file-preview/utils/dialog-options.ts | 10 +++++----- apps/red-ui/src/assets/i18n/redact/de.json | 8 ++++---- apps/red-ui/src/assets/i18n/redact/en.json | 8 ++++---- apps/red-ui/src/assets/i18n/scm/de.json | 8 ++++---- apps/red-ui/src/assets/i18n/scm/en.json | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts index 2e53166f2..364556a78 100644 --- a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts +++ b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts @@ -151,7 +151,7 @@ export const getRemoveRedactionOptions = ( const translations = isDocumine ? removeAnnotationTranslations : removeRedactionTranslations; const { permissions, redactions, applyToAllDossiers, isApprover, falsePositiveContext } = data; const isBulk = redactions.length > 1; - + console.log(redactions[0].typeLabel); const options: DetailsRadioOption[] = []; if (permissions.canRemoveOnlyHere) { options.push({ @@ -159,7 +159,7 @@ export const getRemoveRedactionOptions = ( description: isBulk ? translations.ONLY_HERE.descriptionBulk : translations.ONLY_HERE.description, descriptionParams: { value: redactions[0].value, - type: redactions[0].HINT ? 'hint' : redactions[0].type, + type: redactions[0].HINT ? 'hint' : redactions[0].typeLabel, }, icon: PIN_ICON, value: RemoveRedactionOptions.ONLY_HERE, @@ -169,7 +169,7 @@ export const getRemoveRedactionOptions = ( options.push({ label: isBulk ? translations.IN_DOSSIER.labelBulk : translations.IN_DOSSIER.label, description: isBulk ? translations.IN_DOSSIER.descriptionBulk : translations.IN_DOSSIER.description, - descriptionParams: { value: redactions[0].value, type: redactions[0].HINT ? 'hint' : redactions[0].type }, + descriptionParams: { value: redactions[0].value, type: redactions[0].HINT ? 'hint' : redactions[0].typeLabel }, icon: FOLDER_ICON, value: RemoveRedactionOptions.IN_DOSSIER, extraOption: !isDocumine @@ -188,7 +188,7 @@ export const getRemoveRedactionOptions = ( description: isBulk ? translations.DO_NOT_RECOMMEND.descriptionBulk : translations.DO_NOT_RECOMMEND.description, descriptionParams: { value: redactions[0].value, - type: redactions[0].type, + type: redactions[0].typeLabel, context: falsePositiveContext[0], }, icon: FOLDER_ICON, @@ -207,7 +207,7 @@ export const getRemoveRedactionOptions = ( description: isBulk ? translations.FALSE_POSITIVE.descriptionBulk : translations.FALSE_POSITIVE.description, descriptionParams: { value: redactions[0].value, - type: redactions[0].type, + type: redactions[0].typeLabel, context: falsePositiveContext[0], }, icon: REMOVE_FROM_DICT_ICON, diff --git a/apps/red-ui/src/assets/i18n/redact/de.json b/apps/red-ui/src/assets/i18n/redact/de.json index 713272a88..4081ba6b2 100644 --- a/apps/red-ui/src/assets/i18n/redact/de.json +++ b/apps/red-ui/src/assets/i18n/redact/de.json @@ -2012,14 +2012,14 @@ "list-item-false-positive": "", "options": { "false-positive": { - "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", + "description": "\"{value}\" is not a {type} in this context: \"{context}\".", "description-bulk": "", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", + "description": "Do not annotate \"{value}\" as {type} in any dossier.", "description-bulk": "", - "label": "No longer annotate as \"{type}\"", + "label": "No longer annotate as {type}", "label-bulk": "" }, "only-here": { @@ -2470,4 +2470,4 @@ } }, "yesterday": "Gestern" -} \ No newline at end of file +} diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json index 62bb7f57b..d7d1b1ab3 100644 --- a/apps/red-ui/src/assets/i18n/redact/en.json +++ b/apps/red-ui/src/assets/i18n/redact/en.json @@ -2012,14 +2012,14 @@ "list-item-false-positive": "", "options": { "false-positive": { - "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", + "description": "\"{value}\" is not a {type} in this context: \"{context}\".", "description-bulk": "", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", + "description": "Do not annotate \"{value}\" as {type} in any dossier.", "description-bulk": "", - "label": "No longer annotate as \"{type}\"", + "label": "No longer annotate as {type}", "label-bulk": "" }, "only-here": { @@ -2470,4 +2470,4 @@ } }, "yesterday": "Yesterday" -} \ No newline at end of file +} diff --git a/apps/red-ui/src/assets/i18n/scm/de.json b/apps/red-ui/src/assets/i18n/scm/de.json index 8e62a4758..436d30ddf 100644 --- a/apps/red-ui/src/assets/i18n/scm/de.json +++ b/apps/red-ui/src/assets/i18n/scm/de.json @@ -2012,14 +2012,14 @@ "list-item-false-positive": "\"{text}\" in the context: \"{context}\"", "options": { "false-positive": { - "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", + "description": "\"{value}\" is not a {type} in this context: \"{context}\".", "description-bulk": "The selected items should not be annotated in their respective contexts.", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", + "description": "Do not annotate \"{value}\" as {type} in any dossier.", "description-bulk": "Do not annotate the selected terms as their respective types in any dossier.", - "label": "No longer annotate as \"{type}\"", + "label": "No longer annotate as {type}", "label-bulk": "No longer annotate in any dossier" }, "only-here": { @@ -2470,4 +2470,4 @@ } }, "yesterday": "Gestern" -} \ No newline at end of file +} diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json index a62507bc0..12e524638 100644 --- a/apps/red-ui/src/assets/i18n/scm/en.json +++ b/apps/red-ui/src/assets/i18n/scm/en.json @@ -2012,14 +2012,14 @@ "list-item-false-positive": "\"{text}\" in the context: \"{context}\"", "options": { "false-positive": { - "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", + "description": "\"{value}\" is not a {type} in this context: \"{context}\".", "description-bulk": "The selected items should not be annotated in their respective contexts.", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", + "description": "Do not annotate \"{value}\" as {type} in any dossier.", "description-bulk": "Do not annotate the selected terms as their respective types in any dossier.", - "label": "No longer annotate as \"{type}\"", + "label": "No longer annotate as {type}", "label-bulk": "No longer annotate in any dossier" }, "only-here": { @@ -2470,4 +2470,4 @@ } }, "yesterday": "Yesterday" -} \ No newline at end of file +}