From 8fa23c33d9dd03b6d74529485d9be6de51a7fbd7 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Thu, 8 Jun 2023 11:59:13 +0200 Subject: [PATCH] RED-5912 - Suggestions make redactions disappear in PREVIEW mode --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 4 ++++ 1 file changed, 4 insertions(+) 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 9170e6f4a..051ee4025 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -140,6 +140,10 @@ export class AnnotationWrapper implements IListable, Record { return this.type?.toLowerCase() === 'false_positive' && !!FalsePositiveSuperTypes[this.superType]; } + get isSuggestionAddToFalsePositive() { + return this.typeLabel === annotationTypesTranslations[SuggestionAddFalsePositive]; + } + get isDeclinedSuggestion() { return this.superType === SuperTypes.DeclinedSuggestion; }