Skip to content
Snippets Groups Projects
Commit 09c83059 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Fix stop signing in official signature

parent aee165f6
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,20 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
super.clearQueuedFiles();
}
async stopSigningProcess() {
console.log("stop");
this.signingProcessEnabled = false;
this.signingProcessActive = false;
if (this.currentFile.file !== undefined) {
const key = await this.queueFile(this.currentFile.file);
// set placement mode and parameters so they are restore when canceled
this.queuedFilesPlacementModes[key] = this.currentFilePlacementMode;
this.queuedFilesSignaturePlacements[key] = this.currentFileSignaturePlacement;
}
}
static get styles() {
......@@ -496,7 +510,6 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(DBPSignatureLitElem
</button>
<!-- -->
<button @click="${this.stopSigningProcess}"
?disabled="${this.uploadInProgress}"
id="cancel-signing-process"
class="button is-right ${classMap({hidden: !this.signingProcessActive})}">
${i18n.t('official-pdf-upload.stop-signing-process-button')}
......
......@@ -565,5 +565,4 @@ export default class DBPSignatureLitElement extends BaseLitElement {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment