RED-10331: fixed missing remove-button from pdf-viewer on multi-select.

This commit is contained in:
Nicoleta Panaghiu 2024-10-30 16:06:13 +02:00
parent 97f0230ac5
commit ada527370f

View File

@ -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) {