diff --git a/src/views/Modification/ModifSteps.vue b/src/views/Modification/ModifSteps.vue index 13f0bd9..42db8d5 100644 --- a/src/views/Modification/ModifSteps.vue +++ b/src/views/Modification/ModifSteps.vue @@ -259,12 +259,12 @@ function uploadFileInit() { itemService.uploadDemande(demande.value.id, fileInitSelected.value, 'MODIF') .then(() => { alertMessage.value = "Fichier envoyé"; - isLoaded.value = true; itemService.getFile(demande.value.id, 'MODIF','fichier_prepare', '.csv') .then(response => { let blob = new Blob([response.data], {type: 'application/csv'}); fileLink.value = window.URL.createObjectURL(blob); fileName.value = `fichier_demande_${demande.value.id}.csv`; + isLoaded.value = true; }) }) .catch(err => { diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 11e96d2..56116f3 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -238,12 +238,12 @@ function uploadFile() { itemService.uploadDemande(demande.value.id, fileSelected.value, 'SUPP') .then(() => { alertMessage.value = "Fichier envoyé"; - isLoaded.value = true; itemService.getFile(demande.value.id, 'SUPP','fichier_correspondance', '.csv') .then(response => { let blob = new Blob([response.data], {type: 'application/csv'}); fileLink.value = window.URL.createObjectURL(blob); fileName.value = `fichier_demande_${demande.value.id}.csv`; + isLoaded.value = true; }) }) .catch(err => {