RED-8103: using the type display name and removed "".
This commit is contained in:
parent
7454ee8e3e
commit
0bc3b86d8d
@ -151,7 +151,7 @@ export const getRemoveRedactionOptions = (
|
|||||||
const translations = isDocumine ? removeAnnotationTranslations : removeRedactionTranslations;
|
const translations = isDocumine ? removeAnnotationTranslations : removeRedactionTranslations;
|
||||||
const { permissions, redactions, applyToAllDossiers, isApprover, falsePositiveContext } = data;
|
const { permissions, redactions, applyToAllDossiers, isApprover, falsePositiveContext } = data;
|
||||||
const isBulk = redactions.length > 1;
|
const isBulk = redactions.length > 1;
|
||||||
|
console.log(redactions[0].typeLabel);
|
||||||
const options: DetailsRadioOption<RemoveRedactionOption>[] = [];
|
const options: DetailsRadioOption<RemoveRedactionOption>[] = [];
|
||||||
if (permissions.canRemoveOnlyHere) {
|
if (permissions.canRemoveOnlyHere) {
|
||||||
options.push({
|
options.push({
|
||||||
@ -159,7 +159,7 @@ export const getRemoveRedactionOptions = (
|
|||||||
description: isBulk ? translations.ONLY_HERE.descriptionBulk : translations.ONLY_HERE.description,
|
description: isBulk ? translations.ONLY_HERE.descriptionBulk : translations.ONLY_HERE.description,
|
||||||
descriptionParams: {
|
descriptionParams: {
|
||||||
value: redactions[0].value,
|
value: redactions[0].value,
|
||||||
type: redactions[0].HINT ? 'hint' : redactions[0].type,
|
type: redactions[0].HINT ? 'hint' : redactions[0].typeLabel,
|
||||||
},
|
},
|
||||||
icon: PIN_ICON,
|
icon: PIN_ICON,
|
||||||
value: RemoveRedactionOptions.ONLY_HERE,
|
value: RemoveRedactionOptions.ONLY_HERE,
|
||||||
@ -169,7 +169,7 @@ export const getRemoveRedactionOptions = (
|
|||||||
options.push({
|
options.push({
|
||||||
label: isBulk ? translations.IN_DOSSIER.labelBulk : translations.IN_DOSSIER.label,
|
label: isBulk ? translations.IN_DOSSIER.labelBulk : translations.IN_DOSSIER.label,
|
||||||
description: isBulk ? translations.IN_DOSSIER.descriptionBulk : translations.IN_DOSSIER.description,
|
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,
|
icon: FOLDER_ICON,
|
||||||
value: RemoveRedactionOptions.IN_DOSSIER,
|
value: RemoveRedactionOptions.IN_DOSSIER,
|
||||||
extraOption: !isDocumine
|
extraOption: !isDocumine
|
||||||
@ -188,7 +188,7 @@ export const getRemoveRedactionOptions = (
|
|||||||
description: isBulk ? translations.DO_NOT_RECOMMEND.descriptionBulk : translations.DO_NOT_RECOMMEND.description,
|
description: isBulk ? translations.DO_NOT_RECOMMEND.descriptionBulk : translations.DO_NOT_RECOMMEND.description,
|
||||||
descriptionParams: {
|
descriptionParams: {
|
||||||
value: redactions[0].value,
|
value: redactions[0].value,
|
||||||
type: redactions[0].type,
|
type: redactions[0].typeLabel,
|
||||||
context: falsePositiveContext[0],
|
context: falsePositiveContext[0],
|
||||||
},
|
},
|
||||||
icon: FOLDER_ICON,
|
icon: FOLDER_ICON,
|
||||||
@ -207,7 +207,7 @@ export const getRemoveRedactionOptions = (
|
|||||||
description: isBulk ? translations.FALSE_POSITIVE.descriptionBulk : translations.FALSE_POSITIVE.description,
|
description: isBulk ? translations.FALSE_POSITIVE.descriptionBulk : translations.FALSE_POSITIVE.description,
|
||||||
descriptionParams: {
|
descriptionParams: {
|
||||||
value: redactions[0].value,
|
value: redactions[0].value,
|
||||||
type: redactions[0].type,
|
type: redactions[0].typeLabel,
|
||||||
context: falsePositiveContext[0],
|
context: falsePositiveContext[0],
|
||||||
},
|
},
|
||||||
icon: REMOVE_FROM_DICT_ICON,
|
icon: REMOVE_FROM_DICT_ICON,
|
||||||
|
|||||||
@ -2012,14 +2012,14 @@
|
|||||||
"list-item-false-positive": "",
|
"list-item-false-positive": "",
|
||||||
"options": {
|
"options": {
|
||||||
"false-positive": {
|
"false-positive": {
|
||||||
"description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".",
|
"description": "\"{value}\" is not a {type} in this context: \"{context}\".",
|
||||||
"description-bulk": "",
|
"description-bulk": "",
|
||||||
"label": "False positive"
|
"label": "False positive"
|
||||||
},
|
},
|
||||||
"in-dossier": {
|
"in-dossier": {
|
||||||
"description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.",
|
"description": "Do not annotate \"{value}\" as {type} in any dossier.",
|
||||||
"description-bulk": "",
|
"description-bulk": "",
|
||||||
"label": "No longer annotate as \"{type}\"",
|
"label": "No longer annotate as {type}",
|
||||||
"label-bulk": ""
|
"label-bulk": ""
|
||||||
},
|
},
|
||||||
"only-here": {
|
"only-here": {
|
||||||
@ -2470,4 +2470,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yesterday": "Gestern"
|
"yesterday": "Gestern"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2012,14 +2012,14 @@
|
|||||||
"list-item-false-positive": "",
|
"list-item-false-positive": "",
|
||||||
"options": {
|
"options": {
|
||||||
"false-positive": {
|
"false-positive": {
|
||||||
"description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".",
|
"description": "\"{value}\" is not a {type} in this context: \"{context}\".",
|
||||||
"description-bulk": "",
|
"description-bulk": "",
|
||||||
"label": "False positive"
|
"label": "False positive"
|
||||||
},
|
},
|
||||||
"in-dossier": {
|
"in-dossier": {
|
||||||
"description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.",
|
"description": "Do not annotate \"{value}\" as {type} in any dossier.",
|
||||||
"description-bulk": "",
|
"description-bulk": "",
|
||||||
"label": "No longer annotate as \"{type}\"",
|
"label": "No longer annotate as {type}",
|
||||||
"label-bulk": ""
|
"label-bulk": ""
|
||||||
},
|
},
|
||||||
"only-here": {
|
"only-here": {
|
||||||
@ -2470,4 +2470,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yesterday": "Yesterday"
|
"yesterday": "Yesterday"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2012,14 +2012,14 @@
|
|||||||
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
|
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
|
||||||
"options": {
|
"options": {
|
||||||
"false-positive": {
|
"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.",
|
"description-bulk": "The selected items should not be annotated in their respective contexts.",
|
||||||
"label": "False positive"
|
"label": "False positive"
|
||||||
},
|
},
|
||||||
"in-dossier": {
|
"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.",
|
"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"
|
"label-bulk": "No longer annotate in any dossier"
|
||||||
},
|
},
|
||||||
"only-here": {
|
"only-here": {
|
||||||
@ -2470,4 +2470,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yesterday": "Gestern"
|
"yesterday": "Gestern"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2012,14 +2012,14 @@
|
|||||||
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
|
"list-item-false-positive": "\"{text}\" in the context: \"{context}\"",
|
||||||
"options": {
|
"options": {
|
||||||
"false-positive": {
|
"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.",
|
"description-bulk": "The selected items should not be annotated in their respective contexts.",
|
||||||
"label": "False positive"
|
"label": "False positive"
|
||||||
},
|
},
|
||||||
"in-dossier": {
|
"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.",
|
"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"
|
"label-bulk": "No longer annotate in any dossier"
|
||||||
},
|
},
|
||||||
"only-here": {
|
"only-here": {
|
||||||
@ -2470,4 +2470,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"yesterday": "Yesterday"
|
"yesterday": "Yesterday"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user