RED-8270 & RED-8272 & RED-8261.
This commit is contained in:
parent
a1f8451ee6
commit
f51271521f
@ -34,7 +34,9 @@ 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.isHint) && (autoAnalysisDisabled || !annotation.pending);
|
||||
canRecategorize &&
|
||||
(annotation.isImage || (annotation.isHint && !annotation.isRuleBased)) &&
|
||||
(autoAnalysisDisabled || !annotation.pending);
|
||||
|
||||
export const canResizeAnnotation = (
|
||||
annotation: AnnotationWrapper,
|
||||
@ -42,17 +44,18 @@ export const canResizeAnnotation = (
|
||||
autoAnalysisDisabled: boolean,
|
||||
hasDictionary = false,
|
||||
) =>
|
||||
canAddRedaction &&
|
||||
!annotation.isSkipped &&
|
||||
(autoAnalysisDisabled || !annotation.pending) &&
|
||||
(annotation.isRedacted ||
|
||||
annotation.isImage ||
|
||||
annotation.isHint ||
|
||||
annotation.isRecommendation ||
|
||||
(hasDictionary && annotation.isRuleBased));
|
||||
(canAddRedaction &&
|
||||
!annotation.isSkipped &&
|
||||
!annotation.isIgnoredHint &&
|
||||
(autoAnalysisDisabled || !annotation.pending) &&
|
||||
(annotation.isRedacted ||
|
||||
annotation.isImage ||
|
||||
(annotation.isHint && !annotation.isRuleBased) ||
|
||||
(!annotation.isHint && hasDictionary && annotation.isRuleBased))) ||
|
||||
annotation.isRecommendation;
|
||||
|
||||
export const canEditAnnotation = (annotation: AnnotationWrapper) => (annotation.isRedacted || annotation.isSkipped) && !annotation.isImage;
|
||||
|
||||
export const canEditHint = (annotation: AnnotationWrapper) => annotation.HINT || annotation.isIgnoredHint;
|
||||
export const canEditHint = (annotation: AnnotationWrapper) => (annotation.isHint && !annotation.isRuleBased) || annotation.isIgnoredHint;
|
||||
|
||||
export const canEditImage = (annotation: AnnotationWrapper) => annotation.isImage;
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
*deny="roles.getRss; if: !!annotation.shortContent && !annotation.HINT && !annotation.isSkipped && !annotation.isIgnoredHint"
|
||||
*deny="roles.getRss; if: !!annotation.shortContent && !annotation.isHint && !annotation.isSkipped && !annotation.isIgnoredHint"
|
||||
>
|
||||
<strong><span translate="content"></span>: </strong>{{ annotation.shortContent }}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user