From ada527370f7667ef2080dc7e0307339c517755c4 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 30 Oct 2024 16:06:13 +0200 Subject: [PATCH] RED-10331: fixed missing remove-button from pdf-viewer on multi-select. --- .../file-preview/services/pdf-annotation-actions.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts index 08ed74c69..45b8ec5d8 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts @@ -26,7 +26,7 @@ export class PdfAnnotationActionsService { get(annotations: AnnotationWrapper[], annotationChangesAllowed: boolean): IHeaderElement[] { const availableActions: IHeaderElement[] = []; const permissions = this.#getAnnotationsPermissions(annotations); - const sameType = annotations.every(a => a.type === annotations[0].type); + const sameType = annotations.every(a => a.superType === annotations[0].superType); // you can only resize one annotation at a time if (permissions.canResizeAnnotation && annotationChangesAllowed) {