From 9d22dea6fd9fd6d9191cdf549f9f476ec05a4cf9 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Mon, 12 Feb 2024 18:47:13 +0200 Subject: [PATCH] RED-7980 - Not all unprocessed annotations are displayed correctly --- .../components/annotation-card/annotation-card.component.ts | 3 ++- libs/red-domain/src/lib/redaction-log/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.ts b/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.ts index f338a3cda..8956b0d75 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.ts @@ -25,7 +25,8 @@ export class AnnotationCardComponent { ((this.annotation.isModifyDictionary && !this.annotation.isRemovedLocally && !this.annotation.hasBeenForcedHint && - this.annotation.lastManualChange !== ManualRedactionTypes.LEGAL_BASIS_CHANGE) || + (this.annotation.lastManualChange !== ManualRedactionTypes.LEGAL_BASIS_CHANGE && + this.annotation.lastManualChange !== ManualRedactionTypes.RESIZE_LOCALLY)) || this.annotation.type === ImageCategory.SIGNATURE) ); } diff --git a/libs/red-domain/src/lib/redaction-log/types.ts b/libs/red-domain/src/lib/redaction-log/types.ts index 06ce98d73..e6397adbe 100644 --- a/libs/red-domain/src/lib/redaction-log/types.ts +++ b/libs/red-domain/src/lib/redaction-log/types.ts @@ -18,6 +18,7 @@ export const ManualRedactionTypes = { RECATEGORIZE: 'RECATEGORIZE', LEGAL_BASIS_CHANGE: 'LEGAL_BASIS_CHANGE', RESIZE: 'RESIZE', + RESIZE_LOCALLY: 'RESIZE_LOCALLY', } as const; export type ManualRedactionType = ValuesOf;