From 5baaa33eabc0337c784766cb27681342c41f4e37 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Mon, 4 Apr 2022 19:24:33 +0300 Subject: [PATCH] updated pupup items with an empty list when there are items in list but user has no rights to perform any action --- .../file-preview/components/pdf-viewer/pdf-viewer.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts b/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts index 870a8d3a0..de786c320 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/pdf-viewer/pdf-viewer.component.ts @@ -352,6 +352,9 @@ export class PdfViewerComponent extends AutoUnsubscribe implements OnInit, OnCha async #configureAnnotationSpecificActions(viewerAnnotations: Annotation[]) { if (!this.canPerformActions) { + if (this.instance.UI.annotationPopup.getItems().length) { + this.instance.UI.annotationPopup.update([]); + } return; }