From a2eca4eff08e9ce8d4fd3ee331101f7c6131b02f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 10 Mar 2022 13:58:33 +0200 Subject: [PATCH] RED-3557: Fixed identifying manual redaction super type * Legal Basis Change * Resize --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 f23eab407..2b6674624 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -441,7 +441,7 @@ export class AnnotationWrapper { switch (lastManualChange.annotationStatus) { case LogEntryStatus.APPROVED: case LogEntryStatus.DECLINED: - return 'redaction'; + return redactionLogEntry.type === 'manual' ? 'manual-redaction' : 'redaction'; case LogEntryStatus.REQUESTED: return 'suggestion-change-legal-basis'; } @@ -452,9 +452,10 @@ export class AnnotationWrapper { case LogEntryStatus.DECLINED: if (redactionLogEntry.recommendation) { return 'recommendation'; - } else { - return redactionLogEntry.redacted ? 'redaction' : 'hint'; + } else if (redactionLogEntry.redacted) { + return redactionLogEntry.type === 'manual' ? 'manual-redaction' : 'redaction'; } + return 'hint'; case LogEntryStatus.REQUESTED: return 'suggestion-resize'; }