Skip to content

Commit

Permalink
Fix actualisation pas bonne page si EPN
Browse files Browse the repository at this point in the history
Fix gestion isLoading
  • Loading branch information
SamuelQuetin committed Oct 18, 2024
1 parent 74a9fad commit 6703dd1
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,11 +313,17 @@ function uploadFileFinal() {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
})
.catch(err => {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
}
}
Expand Down

0 comments on commit 6703dd1

Please sign in to comment.