From d9e28e147a90f0f7dbc92e2305bb1755574dd975 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 27 Nov 2024 16:57:32 +0200 Subject: [PATCH] RED-10517: disabled scrolling for select all annotations. --- .../components/file-workload/file-workload.component.ts | 6 +++++- libs/common-ui | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts index c67cfddfa..e98742419 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.ts @@ -309,7 +309,11 @@ export class FileWorkloadComponent extends AutoUnsubscribe implements OnInit, On @Debounce() scrollToSelectedAnnotation(): void { const annotationsElement = untracked(this._annotationsElement); - if (this.listingService.selected.length === 0 || !annotationsElement) { + if ( + this.listingService.selected.length === 0 || + !annotationsElement || + this.activeAnnotations().length === this.listingService.selected.length + ) { return; } const elements: HTMLElement[] = annotationsElement.nativeElement.querySelectorAll( diff --git a/libs/common-ui b/libs/common-ui index cc57415de..b35084d54 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit cc57415de03365cd21f42efe54e8e5eb72cb699c +Subproject commit b35084d54826ebb6da55121a893830f6dd71dd64