Enhancement: navbar upload button

This commit is contained in:
shamoon committed 2026-10-13 12:00:05 -07:00
1 parent d7a9894400
commit 05321b10d3
10 files changed
+95 -19

No files matched your search

@@ -135,7 +135,7 @@ export class FileDropComponent {
.then((results) => {
files.push(...[].concat(...results))
this.toastService.showInfo($localize`Initiating upload...`, 3000)
files.forEach((file) => this.uploadDocumentsService.uploadFile(file))
this.uploadDocumentsService.uploadFiles(files)
})
.catch((e) => {
this.toastService.showError(
@@ -144,7 +144,7 @@ export class FileDropComponent {
})
} else if (files.length) {
this.toastService.showInfo($localize`Initiating upload...`, 3000)
files.forEach((file) => this.uploadDocumentsService.uploadFile(file))
this.uploadDocumentsService.uploadFiles(files)
}
this.onDragLeave(event, true)