();
@Input() selectedAnnotations: AnnotationWrapper[];
@Input() activeViewerPage: number;
- @Input() shouldDeselectAnnotationsOnPageChange: boolean;
@Input() dialogRef: MatDialogRef
;
@Input() file!: File;
@Input() annotationActionsTemplate: TemplateRef;
@Input() viewer: WebViewerInstance;
- @Output() readonly shouldDeselectAnnotationsOnPageChangeChange = new EventEmitter();
@Output() readonly selectAnnotations = new EventEmitter();
@Output() readonly deselectAnnotations = new EventEmitter();
@Output() readonly selectPage = new EventEmitter();
@@ -66,7 +64,6 @@ export class FileWorkloadComponent {
displayedPages: number[] = [];
pagesPanelActive = true;
readonly displayedAnnotations$: Observable
@@ -93,7 +92,6 @@
(selectAnnotations)="selectAnnotations($event)"
(selectPage)="selectPage($event)"
*ngIf="!file.excluded"
- [(shouldDeselectAnnotationsOnPageChange)]="shouldDeselectAnnotationsOnPageChange"
[activeViewerPage]="activeViewerPage"
[annotationActionsTemplate]="annotationActionsTemplate"
[annotations]="visibleAnnotations"
diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
index 2c988e34d..d50fbb5ef 100644
--- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
+++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/file-preview-screen.component.ts
@@ -65,7 +65,6 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
dialogRef: MatDialogRef
;
fullScreen = false;
- shouldDeselectAnnotationsOnPageChange = true;
selectedAnnotations: AnnotationWrapper[] = [];
displayPdfViewer = false;
activeViewerPage: number = null;
@@ -394,9 +393,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
}
this._scrollViews();
- if (!this.multiSelectService.isActive) {
- this.shouldDeselectAnnotationsOnPageChange = true;
- }
+ this.multiSelectService.deactivate();
// Add current page in URL query params
const extras: NavigationExtras = {