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 @@
-
+
-
+
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.ts index b374c8943..c7cf04c87 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/force-redaction-dialog/force-annotation-dialog.component.ts @@ -1,7 +1,7 @@ import { Component, Inject, OnInit } from '@angular/core'; import { UntypedFormGroup, Validators } from '@angular/forms'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; -import { BaseDialogComponent } from '@iqser/common-ui'; +import { BaseDialogComponent, getConfig } from '@iqser/common-ui'; import { JustificationsService } from '@services/entity-services/justifications.service'; import { Dossier, ILegalBasisChangeRequest } from '@red/domain'; import { firstValueFrom } from 'rxjs'; @@ -19,6 +19,7 @@ export interface LegalBasisOption { styleUrls: ['./force-annotation-dialog.component.scss'], }) export class ForceAnnotationDialogComponent extends BaseDialogComponent implements OnInit { + readonly isDocumine = getConfig().IS_DOCUMINE; legalOptions: LegalBasisOption[] = []; constructor( diff --git a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts index 520e9eb3a..e365144d7 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/file-data.service.ts @@ -1,7 +1,7 @@ import { effect, Injectable, Signal, signal } from '@angular/core'; import { toObservable } from '@angular/core/rxjs-interop'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; -import { EntitiesService, Toaster } from '@iqser/common-ui'; +import { EntitiesService, getConfig, Toaster } from '@iqser/common-ui'; import { AnnotationWrapper } from '@models/file/annotation.wrapper'; import { ChangeType, @@ -50,6 +50,7 @@ export class FileDataService extends EntitiesService>; readonly annotations: Signal; readonly annotations$: Observable; + readonly #isDocumine = getConfig().IS_DOCUMINE; constructor( private readonly _state: FilePreviewStateService, @@ -220,6 +221,7 @@ export class FileDataService extends EntitiesService