From a7f867781c8c02bf4022c145d1c4051bbac6cf65 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Tue, 17 Nov 2020 12:43:01 +0200 Subject: [PATCH] fixed actions in redacted view --- .../file/file-preview-screen/file-preview-screen.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index 19753d7cd..2f8a00f16 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -86,6 +86,7 @@ export class FilePreviewScreenComponent implements OnInit, OnDestroy { set redactedView(value: boolean) { this._activeViewer = value ? 'REDACTED' : 'ANNOTATED'; + this.canPerformAnnotationActions = this.permissionsService.canPerformAnnotationActions() && this._activeViewer === 'ANNOTATED'; } get activeViewer() {