diff --git a/src/dbp-qualified-signature-pdf-upload.js b/src/dbp-qualified-signature-pdf-upload.js index cc7e3542309aeb2995fc4df73f56f1be9d89d0e4..b78d1f42d3a2168c1da1f113e47cd9f8b7154662 100644 --- a/src/dbp-qualified-signature-pdf-upload.js +++ b/src/dbp-qualified-signature-pdf-upload.js @@ -54,6 +54,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle this.allowAnnotating = false; this.queuedFilesAnnotations = []; this.queuedFilesAnnotationsCount = 0; + this.queuedFilesEnabledAnnotations = []; this.isAnnotationViewVisible = false; this.activity = new Activity(metadata); @@ -195,7 +196,9 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle fileSize: humanFileSize(file.size, false), }); - await this.uploadFile(file, params); + const annotationsEnabled = this.isAnnotationsEnabledForKey(key); + const annotations = this.takeAnnotationsFromQueue(key); + await this.uploadFile(file, params, annotationsEnabled ? annotations : []); this.uploadInProgress = false; }