diff --git a/apps/red-ui/src/app/models/file/annotation-permissions.utils.ts b/apps/red-ui/src/app/models/file/annotation-permissions.utils.ts index d19b067c3..500041df3 100644 --- a/apps/red-ui/src/app/models/file/annotation-permissions.utils.ts +++ b/apps/red-ui/src/app/models/file/annotation-permissions.utils.ts @@ -16,13 +16,11 @@ export const canMarkAsFalsePositive = (annotation: AnnotationWrapper, annotation annotation.canBeMarkedAsFalsePositive && annotationEntity?.hasDictionary; export const canRemoveOnlyHere = (annotation: AnnotationWrapper, canAddRedaction: boolean, autoAnalysisDisabled: boolean) => - canAddRedaction && - (autoAnalysisDisabled || !annotation.pending) && - (annotation.isRedacted || (annotation.isHint && !annotation.isImage)); + canAddRedaction && (autoAnalysisDisabled || !annotation.pending) && (annotation.isRedacted || (annotation.HINT && !annotation.isImage)); export const canRemoveFromDictionary = (annotation: AnnotationWrapper, autoAnalysisDisabled: boolean) => annotation.isModifyDictionary && - (annotation.isRedacted || annotation.isSkipped || annotation.isHint) && + (annotation.isRedacted || annotation.isSkipped || annotation.HINT) && (autoAnalysisDisabled || !annotation.pending) && !annotation.hasBeenResized; @@ -34,7 +32,7 @@ export const canChangeLegalBasis = (annotation: AnnotationWrapper, canAddRedacti canAddRedaction && annotation.isRedacted && (autoAnalysisDisabled || !annotation.pending); export const canRecategorizeAnnotation = (annotation: AnnotationWrapper, canRecategorize: boolean, autoAnalysisDisabled: boolean) => - canRecategorize && (annotation.isImage || annotation.isDictBasedHint) && (autoAnalysisDisabled || !annotation.pending); + canRecategorize && (annotation.isImage || annotation.HINT) && (autoAnalysisDisabled || !annotation.pending); export const canResizeAnnotation = ( annotation: AnnotationWrapper, @@ -47,7 +45,7 @@ export const canResizeAnnotation = ( (autoAnalysisDisabled || !annotation.pending) && (annotation.isRedacted || annotation.isImage || - annotation.isDictBasedHint || + annotation.HINT || annotation.isRecommendation || (hasDictionary && annotation.isRuleBased)); diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.html index 99c2ed520..84d3dd438 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-card/annotation-card.component.html @@ -24,7 +24,7 @@
: {{ annotation.shortContent }}