From 8d33ac6e5a5cc2062f0d19cb34ba04970bb19ab8 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 27 Apr 2021 12:47:05 +0300 Subject: [PATCH] false positive is not available for images --- apps/red-ui/src/app/models/file/annotation.wrapper.ts | 4 ++-- 1 file changed, 2 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 63f89aeb6..d3f6dcda4 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -79,11 +79,11 @@ export class AnnotationWrapper { } get canBeMarkedAsFalsePositive() { - return this.superType === 'redaction' && (this.hasTextAfter || this.hasTextBefore); + return this.superType === 'redaction' && (this.hasTextAfter || this.hasTextBefore) && !this.isImage; } get canBeMarkedAsFalsePositiveWithTextOnly() { - return !this.canBeMarkedAsFalsePositive && (this.isRecommendation || this.superType === 'redaction'); + return !this.canBeMarkedAsFalsePositive && (this.isRecommendation || this.superType === 'redaction') && !this.isImage; } get isSuperTypeBasedColor() {