Merge branch 'RED-9486' into 'master'

RED-9486: fixed naming of images in remove dialog.

See merge request redactmanager/red-ui!586
This commit is contained in:
Dan Percic 2024-09-25 13:57:49 +02:00
commit c4fc832ef6
2 changed files with 20 additions and 10 deletions

View File

@ -163,6 +163,7 @@ export const getRemoveRedactionOptions = (
descriptionParams: {
value: redactions[0].value,
type: redactions[0].HINT ? 'hint' : redactions[0].typeLabel,
isImage: redactions[0].isImage ? 'image' : redactions[0].typeLabel,
},
icon: PIN_ICON,
value: RemoveRedactionOptions.ONLY_HERE,
@ -171,6 +172,9 @@ export const getRemoveRedactionOptions = (
options.push({
label: removeRedactionTranslations.IN_DOCUMENT.label,
description: removeRedactionTranslations.IN_DOCUMENT.description,
descriptionParams: {
isImage: redactions[0].isImage ? 'image' : redactions[0].typeLabel,
},
icon: DOCUMENT_ICON,
value: RemoveRedactionOptions.IN_DOCUMENT,
});
@ -179,7 +183,11 @@ 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].typeLabel },
descriptionParams: {
value: redactions[0].value,
type: redactions[0].HINT ? 'hint' : redactions[0].typeLabel,
isImage: redactions[0].isImage ? 'image' : redactions[0].typeLabel,
},
icon: FOLDER_ICON,
value: RemoveRedactionOptions.IN_DOSSIER,
extraOption: !isDocumine
@ -200,6 +208,7 @@ export const getRemoveRedactionOptions = (
value: redactions[0].value,
type: redactions[0].typeLabel,
context: falsePositiveContext[0],
isImage: redactions[0].isImage ? 'image' : redactions[0].typeLabel,
},
icon: FOLDER_ICON,
value: RemoveRedactionOptions.DO_NOT_RECOMMEND,
@ -219,6 +228,7 @@ export const getRemoveRedactionOptions = (
value: redactions[0].value,
type: redactions[0].typeLabel,
context: falsePositiveContext[0],
isImage: redactions[0].isImage ? 'image' : redactions[0].typeLabel,
},
icon: REMOVE_FROM_DICT_ICON,
value: RemoveRedactionOptions.FALSE_POSITIVE,

View File

@ -2149,32 +2149,32 @@
"comment-placeholder": "Add remarks or notes...",
"options": {
"do-not-recommend": {
"description": "Do not recommend the selected term in any document of this dossier.",
"description-bulk": "Do not recommend the selected terms in any document of this dossier.",
"description": "Do not recommend the selected {isImage, select, image{image} other{term}} in any document of this dossier.",
"description-bulk": "Do not recommend the selected {isImage, select, image{images} other{terms}} in any document of this dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier"
},
"false-positive": {
"description": "Mark this redaction as a false-positive. The term will not be redacted in this dossier if it occurs in the same context.",
"description-bulk": "Mark these redactions as false-positives. The terms will not be redacted in this dossier if they occur in the same context.",
"description": "Mark this redaction as a false-positive. The {isImage, select, image{image} other{term}} will not be redacted in this dossier if it occurs in the same context.",
"description-bulk": "Mark these redactions as false-positives. The {isImage, select, image{images} other{terms}} will not be redacted in this dossier if they occur in the same context.",
"extraOptionDescription": "Dossier template access is required to reverse this action. As a regular user you can only reverse it for this dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier in this context"
},
"in-document": {
"description": "Do not auto-redact the selected term in any pages of this document.",
"description": "Do not auto-redact the selected {isImage, select, image{image} other{term}} in any pages of this document.",
"label": "Remove from document"
},
"in-dossier": {
"description": "Do not {type, select, hint{annotate} other{auto-redact}} the selected term in any document of this dossier.",
"description-bulk": "Do not {type, select, hint{annotate} other{auto-redact}} the selected terms in this dossier.",
"description": "Do not {type, select, hint{annotate} other{auto-redact}} the selected {isImage, select, image{image} other{term}} in any document of this dossier.",
"description-bulk": "Do not {type, select, hint{annotate} other{auto-redact}} the selected {isImage, select, image{images} other{terms}} in this dossier.",
"extraOptionLabel": "Apply to all active and future dossiers",
"label": "Remove from dossier",
"label-bulk": "Remove from dossier"
},
"only-here": {
"description": "Do not {type, select, hint{annotate} other{redact}} the term at this position in the current document.",
"description-bulk": "Do not {type, select, hint{annotate} other{redact}} the selected terms at this position in the current document.",
"description": "Do not {type, select, hint{annotate} other{redact}} the {isImage, select, image{image} other{term}} at this position in the current document.",
"description-bulk": "Do not {type, select, hint{annotate} other{redact}} the selected {isImage, select, image{images} other{terms}} at this position in the current document.",
"label": "Remove here"
}
}