I need to close two modals named confirmationModal and showModal. I've tried using the on click event, as well as writing an if/else method, but so far nothing seems to do the job.
<div v-if="showModal">
<transition name="modal">
<div class="modal-mask">
<div class="modal-wrapper">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" @click="showModal = false">×</span>
</button>
</div>
<div class="modal-body">
<div class="modal_header_text">Are you Sure?</div>
<img class="redeem_image" src="https://www.fillmurray.com/g/460/420" alt="people"/>
<div class="modal_redeem_text">Redeem for Flyaway?</div>
</div>
<div class="modal-footer">
<button type="button" id="reclamation_btn" class="btn btn-primary" @click="confirmationModal = true">Redeem</button>
<button type="button" id="close_btn" class="btn btn-secondary" @click="showModal = false">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</transition>
</div>
<div v-if="confirmationModal">
<transition name="modal">
<div class="modal-mask">
<div class="modal-wrapper">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true" @click="confirmationModal = false">×</span>
</button>
</div>
<div class="modal-body">
<img class="redeem_image" src="https://www.fillmurray.com/g/460/420" alt="people"/>
</div>
<div class="modal-footer">
<button type="button" id="final_reclamation_btn" class="btn btn-primary" @click="confirmationModal = false">Redeem</button>
</div>
</div>
</div>
</div>
</div>
</transition>
</div>
</div>