show progress bar before closing the collectionSelector modal
This commit is contained in:
parent
11ace7d793
commit
b79835f229
|
@ -16,10 +16,9 @@ function CollectionDropZone({
|
||||||
const upload = async (acceptedFiles) => {
|
const upload = async (acceptedFiles) => {
|
||||||
try {
|
try {
|
||||||
const token = getToken();
|
const token = getToken();
|
||||||
closeModal();
|
|
||||||
progressBarProps.setPercentComplete(0);
|
progressBarProps.setPercentComplete(0);
|
||||||
setProgressView(true);
|
setProgressView(true);
|
||||||
|
closeModal();
|
||||||
await UploadService.uploadFiles(
|
await UploadService.uploadFiles(
|
||||||
acceptedFiles,
|
acceptedFiles,
|
||||||
collectionAndItsLatestFile,
|
collectionAndItsLatestFile,
|
||||||
|
|
Loading…
Reference in a new issue