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

Integrate modal dialog to FileSink and introduce files property (VPU/WebComponents/FileHandling#14)

parent 0d67aad9
No related branches found
No related tags found
No related merge requests found
Pipeline #12223 passed with warnings
......@@ -850,7 +850,9 @@ class OfficialSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitElem
<vpu-mini-spinner></vpu-mini-spinner>
</div>
<vpu-file-sink id="file-sink"
nextcloud-auth-url="${this.showTestNextcloudFilePicker ? nextcloudWebAppPasswordURL : ""}"
filename="signed-documents.zip"
enabled-destinations="local${this.showTestNextcloudFilePicker ? ",nextcloud" : ""}"
nextcloud-auth-url="${nextcloudWebAppPasswordURL}"
nextcloud-web-dav-url="${nextcloudWebDavURL}"
lang="${this.lang}"
></vpu-file-sink>
......
......@@ -1033,7 +1033,9 @@ class QualifiedSignaturePdfUpload extends ScopedElementsMixin(VPUSignatureLitEle
<vpu-mini-spinner></vpu-mini-spinner>
</div>
<vpu-file-sink id="file-sink"
nextcloud-auth-url="${this.showTestNextcloudFilePicker ? nextcloudWebAppPasswordURL : ""}"
filename="signed-documents.zip"
enabled-destinations="local${this.showTestNextcloudFilePicker ? ",nextcloud" : ""}"
nextcloud-auth-url="${nextcloudWebAppPasswordURL}"
nextcloud-web-dav-url="${nextcloudWebDavURL}"
lang="${this.lang}"
></vpu-file-sink>
......
......@@ -218,9 +218,7 @@ export default class VPUSignatureLitElement extends LitElement {
files.push(binaryFile);
});
const detail = { "files": files, "filename": "signed-documents.zip" };
const event = new CustomEvent("vpu-file-sink-download-compressed-files", { "detail": detail });
this._("#file-sink").dispatchEvent(event);
this._("#file-sink").files = files;
this._("#zip-download-button").stop();
}
}
Subproject commit d6a90d5137a055b51affc02ad9fba00d601d5b8a
Subproject commit ea721991b0374c0a9ef83e4cdd2dd075aaa3f73a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment