updated pupup items with an empty list when there are items in list but user has no rights to perform any action

This commit is contained in:
Valentin Mihai 2022-04-04 19:24:33 +03:00
parent 32c666872e
commit 5baaa33eab

View File

@ -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;
}