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

+7
View File
@@ -118,3 +118,10 @@ button[disabled] .enabled {
@apply bg-base-300;
cursor: pointer;
}
.input-outlined {
outline-style: solid;
outline-width: 1px;
outline-offset: 3px;
outline-color: hsl(var(--bc) / 0.2);
}
+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) {