Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/ITEM-305-front-envoi-dun-fichier…
Browse files Browse the repository at this point in the history
…-epn-catcher-le-message-derreur-du-back-dans-le-cas-dun-fichier-de-correspondance-contenant-une-ligne-en-erreur' into ITEM-305-front-envoi-dun-fichier-epn-catcher-le-message-derreur-du-back-dans-le-cas-dun-fichier-de-correspondance-contenant-une-ligne-en-erreur
  • Loading branch information
EryneKL committed Oct 21, 2024
2 parents 225a6dc + 6703dd1 commit df6907c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ onMounted(()=>{
rcrSelected.value = demande.value.rcr;
if (demande.value.typeSuppression){
typeFileSelected.value = demande.value.typeSuppression;
if(demande.value.typeSuppression === "EPN"){
currentStep.value = 2;
}
}
break;
case 'Préparée':
Expand Down Expand Up @@ -310,13 +313,19 @@ function uploadFileFinal() {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
})
.catch(err => {
isLoading.value = false;
fileSelected.value = null;
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
}
}
Expand Down

0 comments on commit df6907c

Please sign in to comment.