RED-3198: no remove only here for images

This commit is contained in:
Dan Percic 2022-04-29 19:27:28 +03:00
parent 64427baf97
commit 6744f99988

View File

@ -37,7 +37,8 @@ export class AnnotationPermissions {
const annotationEntity = entities.find(entity => entity.type === annotation.type);
permissions.canMarkAsFalsePositive = annotation.canBeMarkedAsFalsePositive && annotationEntity.hasDictionary;
permissions.canRemoveOrSuggestToRemoveOnlyHere = (annotation.isRedacted || annotation.isHint) && !annotation.pending;
permissions.canRemoveOrSuggestToRemoveOnlyHere =
(annotation.isRedacted || annotation.isHint) && !annotation.pending && !annotation.isImage;
permissions.canRemoveOrSuggestToRemoveFromDictionary =
annotation.isModifyDictionary &&
(annotation.isRedacted || annotation.isSkipped || annotation.isHint) &&