add file dropzone to dashboard

This commit is contained in:
DocuSeal
2023-09-30 22:31:22 +03:00
parent b98a874e20
commit 872fbbc875
4 changed files with 45 additions and 12 deletions
+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) {