Merge branch 'RED-8103' into 'master'
RED-8103: using the type display name and removed "". See merge request redactmanager/red-ui!235
This commit is contained in:
commit
78d41402f1
@ -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<RemoveRedactionOption>[] = [];
|
||||
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,
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user