diff --git a/apps/red-ui/src/app/models/file/annotation.wrapper.ts b/apps/red-ui/src/app/models/file/annotation.wrapper.ts index 1dce4e86a..17f028140 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -302,6 +302,7 @@ export class AnnotationWrapper implements IListable { changeLogType: ChangeType, legalBasisList: ILegalBasis[], hintDictionary: boolean, + isDocumine: boolean, ) { const annotationWrapper = new AnnotationWrapper(); @@ -351,7 +352,7 @@ export class AnnotationWrapper implements IListable { c => c.manualRedactionType === ManualRedactionTypes.LEGAL_BASIS_CHANGE && c.annotationStatus === LogEntryStatuses.REQUESTED, )?.propertyChanges.legalBasis; - this.#createContent(annotationWrapper, redactionLogEntry); + this.#createContent(annotationWrapper, redactionLogEntry, isDocumine); this.#setSuperType(annotationWrapper, redactionLogEntry); this.#handleRecommendations(annotationWrapper, redactionLogEntry); annotationWrapper.typeLabel = this.#getTypeLabel(redactionLogEntry, annotationWrapper); @@ -421,7 +422,7 @@ export class AnnotationWrapper implements IListable { } } - static #createContent(annotationWrapper: AnnotationWrapper, entry: IRedactionLogEntry) { + static #createContent(annotationWrapper: AnnotationWrapper, entry: IRedactionLogEntry, isDocumine: boolean) { let content = ''; if (entry.matchedRule) { content += `Rule ${entry.matchedRule} matched \n\n`; @@ -434,7 +435,7 @@ export class AnnotationWrapper implements IListable { content = content.substring(0, 1).toUpperCase() + content.substring(1); } - if (annotationWrapper.legalBasis) { + if (annotationWrapper.legalBasis && !isDocumine) { content += 'Legal basis: ' + annotationWrapper.legalBasis + '\n\n'; } diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.html index 30c8a7e1e..5fc13333b 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.html @@ -4,7 +4,7 @@