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 b47f13a5d..d986c9a05 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 @@ -187,7 +187,23 @@ export class FilePreviewScreenComponent implements OnInit { public openManualRedactionDialog($event: ManualRedactionEntry) { this.ngZone.run(() => { - this._dialogRef = this._dialogService.openManualRedactionDialog($event, () => {}); + this._dialogRef = this._dialogService.openManualRedactionDialog( + $event, + (annotation) => { + // const annotManager = this.activeViewer.annotManager; + // const rectangleAnnot = new this.activeViewer.Annotations.RectangleAnnotation(); + // rectangleAnnot.PageNumber = 1; + // // values are in page coordinates with (0, 0) in the top left + // rectangleAnnot.X = 100; + // rectangleAnnot.Y = 150; + // rectangleAnnot.Width = 200; + // rectangleAnnot.Height = 50; + // rectangleAnnot.Author = annotManager.getCurrentUser(); + // + // annotManager.addAnnotation(rectangleAnnot,true); + // annotManager.redrawAnnotation(rectangleAnnot); + } + ); }); }