Skip to content

Commit e97d935

Browse files
committed
fix: retour au formulaire sur modal confirmation fermeture
Signed-off-by: Maud Royer <hello@maudroyer.fr>
1 parent 435f77a commit e97d935

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Features/SingleItemCertificationBodyForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</div>
6464
</template>
6565
</Modal>
66-
<CancelModal v-if="showCancelModal" @save="validate" @close="$emit('close')"/>
66+
<CancelModal v-if="showCancelModal" @cancel="showCancelModal = false" @close="$emit('close')"/>
6767
</template>
6868

6969
<script setup>

src/components/Features/SingleItemOperatorForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</div>
4242
</template>
4343
</Modal>
44-
<CancelModal v-if="showCancelModal" @save="validate" @close="$emit('close')"/>
44+
<CancelModal v-if="showCancelModal" @cancel="showCancelModal = false" @close="$emit('close')"/>
4545
</template>
4646

4747

src/components/Forms/CancelModal.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup>
22
import Modal from "@/components/Modal.vue"
33
4-
defineEmits(['close', 'save'])
4+
defineEmits(['close', 'cancel'])
55
</script>
66

77
<template>
@@ -18,8 +18,8 @@ defineEmits(['close', 'save'])
1818
<template #footer>
1919
<ul class="fr-btns-group fr-btns-group--inline-lg">
2020
<li>
21-
<button class="fr-btn" @click="$emit('save')">
22-
Enregistrer
21+
<button class="fr-btn" @click="$emit('cancel')">
22+
Revenir au formulaire
2323
</button>
2424
</li>
2525
<li>

0 commit comments

Comments
 (0)