diff --git a/apps/red-ui/src/app/models/file/annotation.permissions.ts b/apps/red-ui/src/app/models/file/annotation.permissions.ts index 4d350e883..074dad68a 100644 --- a/apps/red-ui/src/app/models/file/annotation.permissions.ts +++ b/apps/red-ui/src/app/models/file/annotation.permissions.ts @@ -1,7 +1,7 @@ import { UserWrapper } from '@services/user.service'; import { AnnotationWrapper } from './annotation.wrapper'; -export class AnnotationPerimssions { +export class AnnotationPermissions { canUndo: boolean; canAcceptRecommendation: boolean; @@ -16,6 +16,8 @@ export class AnnotationPerimssions { canForceRedaction: boolean; + canChangeLegalBasis: boolean; + get canPerformMultipleRemoveActions() { return ( this.canMarkTextOnlyAsFalsePositive + @@ -59,6 +61,8 @@ export class AnnotationPerimssions { !permissions.canUndo && annotation.superType !== 'pending-analysis')); + permissions.canChangeLegalBasis = !!annotation.legalBasis; + return permissions; } } 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 a133eb48a..ef54f811c 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -37,6 +37,7 @@ export class AnnotationWrapper { dictionaryOperation: boolean; positions: Rectangle[]; recommendationType: string; + legalBasis: string; image?: boolean; force?: boolean; @@ -227,6 +228,7 @@ export class AnnotationWrapper { annotationWrapper.userId = redactionLogEntry.userId; annotationWrapper.image = redactionLogEntry.image; annotationWrapper.comments = redactionLogEntry.comments || []; + annotationWrapper.legalBasis = redactionLogEntry.legalBasis; AnnotationWrapper._createContent(annotationWrapper, redactionLogEntry); AnnotationWrapper._setSuperType(annotationWrapper, redactionLogEntry); AnnotationWrapper._handleSkippedState(annotationWrapper, redactionLogEntry);