Skip to content

Commit

Permalink
fix errors on closing external auth modal part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zsuffad committed Jan 14, 2025
1 parent a38c22b commit 0380a17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/dbp-qualified-signature-pdf-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitEle
const entry = this.takeFileFromQueue(key);
const file = entry.file;
this.currentFile = file;
this.currentKey = key;

// set placement mode and parameters to restore them when canceled
this.currentFilePlacementMode = this.queuedFilesPlacementModes[key];
Expand Down
4 changes: 3 additions & 1 deletion src/dbp-signature-lit-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default class DBPSignatureLitElement extends BaseLitElement {
this.currentFileName = '';
this.currentFilePlacementMode = '';
this.currentFileSignaturePlacement = {};
this.currentKey = '';
this.queuedFilesAnnotations = [];
this.queuedFilesAnnotationsCount = 0;
this.uploadStatusFileName = '';
Expand Down Expand Up @@ -92,6 +93,7 @@ export default class DBPSignatureLitElement extends BaseLitElement {
queueBlockEnabled: {type: Boolean, attribute: false},
currentFile: {type: Object, attribute: false},
currentFileName: {type: String, attribute: false},
currentKey: {type: String, attribute: false},
signaturePlacementInProgress: {type: Boolean, attribute: false},
withSigBlock: {type: Boolean, attribute: false},
isSignaturePlacement: {type: Boolean, attribute: false},
Expand Down Expand Up @@ -131,7 +133,7 @@ export default class DBPSignatureLitElement extends BaseLitElement {
* @returns {Promise<string>} key of the re-queued item
*/
async reQueueFile(file) {
const key = String(this._queueKey);
const key = this.currentKey;
this.queuedFiles[key] = new SignatureEntry(key, file);
this.updateQueuedFilesCount();

Expand Down

0 comments on commit 0380a17

Please sign in to comment.