diff --git a/apps/red-ui/src/app/components/base-screen/base-screen.component.ts b/apps/red-ui/src/app/components/base-screen/base-screen.component.ts index d296df378..1db7fe6cd 100644 --- a/apps/red-ui/src/app/components/base-screen/base-screen.component.ts +++ b/apps/red-ui/src/app/components/base-screen/base-screen.component.ts @@ -58,7 +58,7 @@ export class BaseScreenComponent { { name: _('top-bar.navigation-items.my-account.children.trash'), routerLink: '/main/admin/trash', - show: this.currentUser.isManager || this.currentUser.isUserAdmin + show: this.currentUser.isManager } ]; 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 bb341df90..3b4d6e05f 100644 --- a/apps/red-ui/src/app/models/file/annotation.permissions.ts +++ b/apps/red-ui/src/app/models/file/annotation.permissions.ts @@ -40,10 +40,9 @@ export class AnnotationPermissions { for (const annotation of annotations) { const permissions: AnnotationPermissions = new AnnotationPermissions(); - permissions.canUndo = (!isApprover && annotation.isSuggestion) || (isApprover && annotation.isUndoableActionForApprover); - - permissions.canForceRedaction = annotation.isSkipped && !permissions.canUndo; + permissions.canUndo = !isApprover && annotation.isSuggestion; + permissions.canForceRedaction = annotation.isSkipped; permissions.canAcceptRecommendation = annotation.isRecommendation; permissions.canMarkAsFalsePositive = annotation.canBeMarkedAsFalsePositive && !annotation.force; @@ -55,10 +54,7 @@ export class AnnotationPermissions { (annotation.isSkipped && annotation.isModifyDictionary); permissions.canAcceptSuggestion = isApprover && (annotation.isSuggestion || annotation.isDeclinedSuggestion); - permissions.canRejectSuggestion = - isApprover && - (annotation.isSuggestion || - (annotation.isReadyForAnalysis && !permissions.canUndo && annotation.superType !== 'pending-analysis')); + permissions.canRejectSuggestion = isApprover && annotation.isSuggestion; permissions.canChangeLegalBasis = !annotation.isManualRedaction && annotation.isRedacted; 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 3f4afa121..6ea89801f 100644 --- a/apps/red-ui/src/app/models/file/annotation.wrapper.ts +++ b/apps/red-ui/src/app/models/file/annotation.wrapper.ts @@ -271,6 +271,11 @@ export class AnnotationWrapper { if (redactionLogEntryWrapper.manualRedactionType === 'RECATEGORIZE') { if (redactionLogEntryWrapper.status === 'REQUESTED') { annotationWrapper.superType = 'suggestion-recategorize-image'; + return; + } + if (redactionLogEntryWrapper.status === 'APPROVED') { + annotationWrapper.superType = annotationWrapper.redaction ? 'redaction' : annotationWrapper.hint ? 'hint' : 'skipped'; + return; } } diff --git a/apps/red-ui/src/app/modules/admin/screens/general-config/general-config-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/general-config/general-config-screen.component.html index d2bf4b800..176a84521 100644 --- a/apps/red-ui/src/app/modules/admin/screens/general-config/general-config-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/general-config/general-config-screen.component.html @@ -32,8 +32,8 @@