From 75565d4e6f7a8dd4f39198a7610ab0db20dd78b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 17 Feb 2022 20:17:45 +0200 Subject: [PATCH] Supertype after recategorization --- .../src/app/models/file/annotation.wrapper.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 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 aaac10fa3..e16705469 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -426,8 +426,17 @@ export class AnnotationWrapper { case ManualRedactionType.RECATEGORIZE: switch (lastManualChange.annotationStatus) { case LogEntryStatus.APPROVED: - case LogEntryStatus.DECLINED: - return redactionLogEntry.redacted ? 'redaction' : 'hint'; + case LogEntryStatus.DECLINED: { + if (redactionLogEntry.recommendation) { + return 'recommendation'; + } else if (redactionLogEntry.redacted) { + return 'redaction'; + } else if (redactionLogEntry.hint) { + return 'hint'; + } else { + return 'skipped'; + } + } case LogEntryStatus.REQUESTED: return 'suggestion-recategorize-image'; }