Skip to content

Commit

Permalink
Merge pull request #267 from AgenceBio/maud/fix_annuler_modale
Browse files Browse the repository at this point in the history
Retour au formulaire sur modal de confirmation de fermeture
  • Loading branch information
jillro authored Nov 27, 2023
2 parents 435f77a + e97d935 commit 925bcba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</div>
</template>
</Modal>
<CancelModal v-if="showCancelModal" @save="validate" @close="$emit('close')"/>
<CancelModal v-if="showCancelModal" @cancel="showCancelModal = false" @close="$emit('close')"/>
</template>

<script setup>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Features/SingleItemOperatorForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
</template>
</Modal>
<CancelModal v-if="showCancelModal" @save="validate" @close="$emit('close')"/>
<CancelModal v-if="showCancelModal" @cancel="showCancelModal = false" @close="$emit('close')"/>
</template>


Expand Down
6 changes: 3 additions & 3 deletions src/components/Forms/CancelModal.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
import Modal from "@/components/Modal.vue"
defineEmits(['close', 'save'])
defineEmits(['close', 'cancel'])
</script>

<template>
Expand All @@ -18,8 +18,8 @@ defineEmits(['close', 'save'])
<template #footer>
<ul class="fr-btns-group fr-btns-group--inline-lg">
<li>
<button class="fr-btn" @click="$emit('save')">
Enregistrer
<button class="fr-btn" @click="$emit('cancel')">
Revenir au formulaire
</button>
</li>
<li>
Expand Down

0 comments on commit 925bcba

Please sign in to comment.