diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-actions/annotation-actions.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-actions/annotation-actions.component.ts index d9cb9a9ba..9db9c00e3 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-actions/annotation-actions.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-actions/annotation-actions.component.ts @@ -38,6 +38,7 @@ export class AnnotationActionsComponent implements OnChanges { @Input() alwaysVisible: boolean; @Input() @Required() file!: File; @Output() annotationsChanged = new EventEmitter(); + @Output() seeReferences = new EventEmitter(); annotationPermissions: AnnotationPermissions; constructor( @@ -157,7 +158,6 @@ export class AnnotationActionsComponent implements OnChanges { } openAnnotationReferencesDialog(): void { - const data = {}; - this._dialogService.openDialog('seeAnnotationReferences', null, data, async () => {}); + this.seeReferences.emit(true); } } diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.html index bd39f1f2d..fdda1748f 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.html @@ -1,4 +1,4 @@ -
+
X REFERENCES
diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.scss b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.scss index e69de29bb..4b94df396 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.scss +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.scss @@ -0,0 +1,4 @@ +.references-dialog { + position: fixed; + left: -100px; +} diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.ts index bbce745d7..a52d2d34c 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotation-references-dialog/annotation-references-dialog.component.ts @@ -1,5 +1,5 @@ import { Component } from '@angular/core'; -import { BaseDialogComponent } from '../../../../../../../../../../libs/common-ui/src'; +import { BaseDialogComponent } from '@iqser/common-ui'; @Component({ selector: 'redaction-annotation-references-dialog', diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html index 71c41366d..375e46f74 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/file-workload/file-workload.component.html @@ -50,6 +50,7 @@ (); @Output() readonly selectPage = new EventEmitter(); @Output() readonly annotationsChanged = new EventEmitter(); + @Output() readonly seeReferences = new EventEmitter(); displayedPages: number[] = []; pagesPanelActive = true; readonly displayedAnnotations$: Observable>; diff --git a/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts b/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts index bdfc578b9..65d6e8092 100644 --- a/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts @@ -24,8 +24,7 @@ type DialogType = | 'removeAnnotations' | 'resizeAnnotation' | 'forceRedaction' - | 'manualAnnotation' - | 'seeAnnotationReferences'; + | 'manualAnnotation'; @Injectable() export class DossiersDialogService extends DialogService { @@ -69,9 +68,6 @@ export class DossiersDialogService extends DialogService { component: ManualAnnotationDialogComponent, dialogConfig: { autoFocus: true }, }, - seeAnnotationReferences: { - component: AnnotationReferencesDialogComponent, - }, }; constructor(protected readonly _dialog: MatDialog) {