add file dropzone to dashboard

This commit is contained in:
DocuSeal committed 2023-10-01 16:50:42 +03:00
1 parent b98a874e20
commit 872fbbc875
4 files changed
+45 -12

No files matched your search

+4 -2
View File
@@ -91,11 +91,13 @@ export default actionable(targetable(class extends HTMLElement {
this.append(input)
})
if (this.dataset.submitOnUpload) {
if (this.dataset.submitOnUpload === 'true') {
this.closest('form').querySelector('button[type="submit"]').click()
}
}).finally(() => {
this.toggleLoading()
if (this.dataset.submitOnUpload !== 'true') {
this.toggleLoading()
}
})
} else {
if (this.dataset.submitOnUpload) {