RED-8270: fixed actions not available for manually added hints.
This commit is contained in:
parent
df0e2c17c4
commit
70dcc38503
@ -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));
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
*deny="roles.getRss; if: !!annotation.shortContent && !annotation.isHint && !annotation.isSkipped && !annotation.isIgnoredHint"
|
||||
*deny="roles.getRss; if: !!annotation.shortContent && !annotation.HINT && !annotation.isSkipped && !annotation.isIgnoredHint"
|
||||
>
|
||||
<strong><span translate="content"></span>: </strong>{{ annotation.shortContent }}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user