From 6703dd12b953ea7d49c838053ad663b5aeb4c4a6 Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Fri, 18 Oct 2024 15:55:13 +0200 Subject: [PATCH] Fix actualisation pas bonne page si EPN Fix gestion isLoading --- src/views/Suppression/SuppSteps.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 525d818..72549f8 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -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': @@ -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; + }); } }