don't show spinner in case cancelled and can't remove

This commit is contained in:
joshuaboud 2021-11-15 15:53:02 -04:00
parent 17e4a3cd4e
commit 5575fa76ac
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -47,9 +47,10 @@ export class NavDragDrop {
uploader.using_webkit = false; uploader.using_webkit = false;
uploads.push(uploader); uploads.push(uploader);
} }
uploads = await this.handle_conflicts(uploads); if (uploads.length) {
this.upload_manager.add(... uploads); uploads = await this.handle_conflicts(uploads);
this.nav_window_ref.stop_load(); this.upload_manager.add(... uploads);
}
} }
document.getElementById("nav-upload-btn").addEventListener("click", this.upload_dialog.bind(this)); document.getElementById("nav-upload-btn").addEventListener("click", this.upload_dialog.bind(this));
} }
@ -213,7 +214,6 @@ export class NavDragDrop {
} }
upload_dialog() { upload_dialog() {
this.nav_window_ref.start_load();
this.upload_element.click(); this.upload_element.click();
} }
} }