From 429cc4f1fa9c320a4c3f6a507ba5a3982f0334f0 Mon Sep 17 00:00:00 2001 From: Timo Date: Mon, 11 Jan 2021 15:53:22 +0200 Subject: [PATCH] updated ignore state for recommendations --- .../src/app/screens/file/model/annotation.wrapper.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts b/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts index fc078773f..a9c7b5fcd 100644 --- a/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts +++ b/apps/red-ui/src/app/screens/file/model/annotation.wrapper.ts @@ -181,8 +181,13 @@ export class AnnotationWrapper { private static _setSuperType(annotationWrapper: AnnotationWrapper, redactionLogEntryWrapper: RedactionLogEntryWrapper) { if (redactionLogEntryWrapper.recommendation) { - annotationWrapper.superType = 'recommendation'; - return; + if (redactionLogEntryWrapper.redacted) { + annotationWrapper.superType = 'recommendation'; + return; + } else { + annotationWrapper.superType = 'ignore'; + return; + } } if (redactionLogEntryWrapper.status === 'DECLINED') {