Skip to content

Commit

Permalink
Merge pull request #140 from abes-esr/modification-bouton-de-telechar…
Browse files Browse the repository at this point in the history
…gement

Modification composant
  • Loading branch information
EryneKL authored Oct 7, 2024
2 parents cabaddc + dec2673 commit 4cb83e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/Modification/ModifSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 4cb83e8

Please sign in to comment.