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

remove obsolete i18n parameter (#37)

parent e2cfe469
Branches
No related tags found
No related merge requests found
Pipeline #18870 passed
......@@ -177,7 +177,7 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
});
const annotations = this.takeAnnotationsFromQueue(key);
await this.uploadFile(file, params, annotations, i18n);
await this.uploadFile(file, params, annotations);
this.uploadInProgress = false;
}
......
......@@ -288,17 +288,16 @@ export default class DBPSignatureLitElement extends DBPSignatureBaseLitElement {
* @param file
* @param params
* @param annotations
* @param i18n
* @returns {Promise<void>}
*/
async uploadFile(file, params = {}, annotations = [], i18n = {}) {
async uploadFile(file, params = {}, annotations = []) {
this.uploadInProgress = true;
this.uploadStatusFileName = file.name;
let formData = new FormData();
// add annotations
if (annotations.length > 0) {
file = await this.addAnnotationsToFile(file, annotations, i18n);
file = await this.addAnnotationsToFile(file, annotations);
console.log("uploadFile file", file);
// Also send annotations to the server so they get included in the signature block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment