diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
index 95bae11fc..01570fd13 100644
--- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
+++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
@@ -149,6 +149,4 @@
-
-
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 0797957d1..9ea60c614 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
@@ -37,7 +37,6 @@ export class FilePreviewScreenComponent implements OnInit {
private _readyViewers: string[] = [];
private projectId: string;
private _activeViewer: 'ANNOTATED' | 'REDACTED' = 'ANNOTATED';
- private _manualRedactionEntry: AddRedactionRequest;
@ViewChild(PdfViewerComponent) private _viewerComponent: PdfViewerComponent;
@ViewChild('annotations') private _annotationsElement: ElementRef;
@@ -167,19 +166,12 @@ export class FilePreviewScreenComponent implements OnInit {
}
handleManualAnnotationRequest($event: ManualRedactionEntry) {
- this._manualRedactionEntry = $event;
- document.getElementById('open-manual-redaction-dialog-btn').click();
- }
-
- openManualRedactionDialog() {
- const ref = this._dialog.open(ManualRedactionDialogComponent, {
- width: '600px',
- maxWidth: '90vw',
- data: this._manualRedactionEntry
- });
-
- ref.afterClosed().subscribe(() => {
- this._manualRedactionEntry = null;
+ this.ngZone.run(() => {
+ this._dialog.open(ManualRedactionDialogComponent, {
+ width: '600px',
+ maxWidth: '90vw',
+ data: $event
+ });
});
}