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:
parent
32c666872e
commit
5baaa33eab
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user