Merge branch 'VM/RED-8742' into 'master'

VM/RED-8742 - fixed hide button

Closes RED-8742

See merge request redactmanager/red-ui!454
This commit is contained in:
Dan Percic 2024-06-14 14:35:08 +02:00
commit 223575c232

View File

@ -377,7 +377,7 @@ export class PdfProxyService {
const allAreImage = annotationWrappers.reduce((acc, next) => acc && next.isImage, true);
const hideSkipped = this._skippedService.hideSkipped() && annotationWrappers.some(a => a.isSkipped);
if (allAreImage && !this._annotationManager.resizingAnnotationId && !hideSkipped) {
const allAreVisible = viewerAnnotations.reduce((acc, next) => next.isVisible() && acc, true);
const allAreVisible = viewerAnnotations.reduce((acc, next) => next.isVisible() && !!next['Opacity'] && acc, true);
const visibilityButton = {
type: 'actionButton',