Skip to content

Commit

Permalink
Merge pull request #141 from abes-esr/ITEM-257-le-rafraichissement-av…
Browse files Browse the repository at this point in the history
…ec-f-5-dune-page-dans-quelconque-etape-dun-service-renverra-a-la-premiere-etape-du-service-choix-rcr

Prise en compte de l'état de la demande en cas de rechargement de la …
  • Loading branch information
EryneKL authored Oct 8, 2024
2 parents 4cb83e8 + ad6cd37 commit 675fd87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Exemplarisation/ExempSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'EXEMP')
.then(response => {
demande.value = response.data;
router.replace(`/exemplarisation/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError',err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Modification/ModifSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'MODIF')
.then(response => {
demande.value = response.data;
router.replace(`/modification/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError', err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Recouvrement/RecouvSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'RECOUV')
.then(response => {
demande.value = response.data;
router.replace(`/recouvrement/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError',err);
Expand Down
1 change: 1 addition & 0 deletions src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function createDemande() {
itemService.creerDemande(rcrSelected.value, 'SUPP')
.then(response => {
demande.value = response.data;
router.replace(`/suppression/${demande.value.id}`)
next();
}).catch(err => {
emits('backendError', err);
Expand Down

0 comments on commit 675fd87

Please sign in to comment.