From cee640897927968e8bc133151b36f42f370ed8fe Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Tue, 26 Mar 2024 16:21:17 +0200 Subject: [PATCH] RED-8829 - revert changes --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 2 -- .../red-ui/src/app/modules/file-preview/utils/dialog-options.ts | 2 +- libs/red-domain/src/lib/redaction-log/types.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) 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 5dfb77b5c..1a8f5db59 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -59,7 +59,6 @@ export class AnnotationWrapper implements IListable { hasBeenResized: boolean; hasBeenRecategorized: boolean; hasLegalBasisChanged: boolean; - hasBeenForced: boolean; hasBeenForcedHint: boolean; hasBeenForcedRedaction: boolean; hasBeenRemovedByManualOverride: boolean; @@ -260,7 +259,6 @@ export class AnnotationWrapper implements IListable { annotationWrapper.hasLegalBasisChanged = !!logEntry.manualChanges?.find( c => c.manualRedactionType === ManualRedactionTypes.LEGAL_BASIS_CHANGE, ); - annotationWrapper.hasBeenForced = !!logEntry.manualChanges?.find(c => c.manualRedactionType === ManualRedactionTypes.FORCE); annotationWrapper.hasBeenForcedHint = !!logEntry.manualChanges?.find( c => c.manualRedactionType === ManualRedactionTypes.FORCE_HINT, ); 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 eba62aef6..82894b5db 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 @@ -133,7 +133,7 @@ export const getResizeRedactionOptions = ( label: translations.inDossier.label, description: translations.inDossier.description, descriptionParams: { dossierName: dossier.dossierName }, - disabled: !dictBasedType || redaction.hasBeenRecategorized || redaction.hasBeenForced, + disabled: !dictBasedType || redaction.hasBeenRecategorized, tooltip: !dictBasedType ? translations.inDossier.tooltip : null, icon: FOLDER_ICON, value: RedactOrHintOptions.IN_DOSSIER, diff --git a/libs/red-domain/src/lib/redaction-log/types.ts b/libs/red-domain/src/lib/redaction-log/types.ts index b5006bc3a..1a6f2abd3 100644 --- a/libs/red-domain/src/lib/redaction-log/types.ts +++ b/libs/red-domain/src/lib/redaction-log/types.ts @@ -15,7 +15,6 @@ export const ManualRedactionTypes = { ADD_TO_DICTIONARY: 'ADD_TO_DICTIONARY', REMOVE_LOCALLY: 'REMOVE_LOCALLY', REMOVE_FROM_DICTIONARY: 'REMOVE_FROM_DICTIONARY', - FORCE: 'FORCE', FORCE_REDACT: 'FORCE_REDACT', FORCE_HINT: 'FORCE_HINT', RECATEGORIZE: 'RECATEGORIZE',