diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/accept-recommendation-dialog/accept-recommendation-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/accept-recommendation-dialog/accept-recommendation-dialog.component.ts index 4740e83b9..74f3c2cac 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/accept-recommendation-dialog/accept-recommendation-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/accept-recommendation-dialog/accept-recommendation-dialog.component.ts @@ -49,7 +49,7 @@ export class AcceptRecommendationDialogComponent extends BaseDialogComponent imp get displayedDictionaryLabel() { const dictType = this.form.get('dictionary').value as string; if (dictType && this.possibleDictionaries.length) { - return this.possibleDictionaries.find(d => d.type === dictType).label; + return this.possibleDictionaries.find(d => d.type === dictType)?.label; } return null; } @@ -57,7 +57,7 @@ export class AcceptRecommendationDialogComponent extends BaseDialogComponent imp async ngOnInit() { this.possibleDictionaries = await this._dictionaryService.getDictionariesOptions(this._dossier.dossierTemplateId, this._dossier.id); this.form.patchValue({ - dictionary: this.possibleDictionaries.find(dict => dict.type === this.data.annotations[0].recommendationType).type, + dictionary: this.possibleDictionaries.find(dict => dict.type === this.data.annotations[0].recommendationType)?.type, }); } 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 7e45618df..3c462da5a 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 @@ -146,7 +146,7 @@ export const getRemoveRedactionOptions = ( options.push({ label: translations.ONLY_HERE.label, description: translations.ONLY_HERE.description, - descriptionParams: { type: redaction.hint ? 'hint' : 'redact', value: redaction.value }, + descriptionParams: { value: redaction.value }, icon: PIN_ICON, value: RemoveRedactionOptions.ONLY_HERE, }); @@ -155,7 +155,7 @@ export const getRemoveRedactionOptions = ( options.push({ label: translations.IN_DOSSIER.label, description: translations.IN_DOSSIER.description, - descriptionParams: { type: redaction.hint ? 'hint' : 'redact', value: redaction.value }, + descriptionParams: { value: redaction.value, type: redaction.type }, icon: FOLDER_ICON, value: RemoveRedactionOptions.IN_DOSSIER, extraOption: !isDocumine diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json index db42c2f4c..212a3b03a 100644 --- a/apps/red-ui/src/assets/i18n/redact/en.json +++ b/apps/red-ui/src/assets/i18n/redact/en.json @@ -2023,11 +2023,11 @@ "comment-placeholder": "Add remarks or mentions ...", "options": { "false-positive": { - "description": "\"{value}\" is not a {type} in this context: \"{context}\".", + "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" in any document of the current dossier.", + "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", "label": "Remove from dossier" }, "only-here": { diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json index 035168cdd..09c4cdf04 100644 --- a/apps/red-ui/src/assets/i18n/scm/en.json +++ b/apps/red-ui/src/assets/i18n/scm/en.json @@ -2023,11 +2023,11 @@ "comment-placeholder": "Add remarks or mentions ...", "options": { "false-positive": { - "description": "\"{value}\" is not a {type} in this context: \"{context}\".", + "description": "\"{value}\" is not a \"{type}\" in this context: \"{context}\".", "label": "False positive" }, "in-dossier": { - "description": "Do not annotate \"{value}\" in any document of the current dossier.", + "description": "Do not annotate \"{value}\" as \"{type}\" in any dossier.", "label": "Remove from dossier" }, "only-here": { diff --git a/libs/common-ui b/libs/common-ui index e1323070c..0fd87149a 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit e1323070c688fe46a0ba64ae9964506024b73443 +Subproject commit 0fd87149ae2de85fe2c41d8bca46e8706cd31df9