From 54e85f7e29b7d276df5367958441f1d81056b2af Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 9 Dec 2022 15:09:02 +0200 Subject: [PATCH] RED-5707: show preview redactions with 50% opacity --- .../modules/file-preview/file-preview-screen.component.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index b24a59e90..38057fe7d 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -92,10 +92,7 @@ export class FilePreviewScreenComponent fullScreen = false; readonly fileId = this.state.fileId; readonly dossierId = this.state.dossierId; - readonly file$ = this.state.file$.pipe( - tap(file => this._fileDataService.loadAnnotations(file)), - log('file'), - ); + readonly file$ = this.state.file$.pipe(tap(file => this._fileDataService.loadAnnotations(file))); width: number; @ViewChild('annotationFilterTemplate', { read: TemplateRef, @@ -764,7 +761,7 @@ export class FilePreviewScreenComponent private _setAnnotationsOpacity(annotations: Annotation[], restoreToOriginal = false) { annotations.forEach(annotation => { - annotation['Opacity'] = restoreToOriginal ? parseFloat(annotation.getCustomData('opacity')) : 1; + annotation['Opacity'] = restoreToOriginal ? parseFloat(annotation.getCustomData('opacity')) : 0.5; }); }