Skip to content
Snippets Groups Projects
Unverified Commit adbf1cd9 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire:
Browse files

Implement annotating of PDFs for qualified signature pdf upload (#37)

parent 0135a4de
Branches
No related tags found
No related merge requests found
Pipeline #21481 failed
...@@ -54,6 +54,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -54,6 +54,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
this.allowAnnotating = false; this.allowAnnotating = false;
this.queuedFilesAnnotations = []; this.queuedFilesAnnotations = [];
this.queuedFilesAnnotationsCount = 0; this.queuedFilesAnnotationsCount = 0;
this.queuedFilesEnabledAnnotations = [];
this.isAnnotationViewVisible = false; this.isAnnotationViewVisible = false;
this.activity = new Activity(metadata); this.activity = new Activity(metadata);
...@@ -195,7 +196,9 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle ...@@ -195,7 +196,9 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
fileSize: humanFileSize(file.size, false), 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; this.uploadInProgress = false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment