Actually remove the modal when not in use

This commit is contained in:
Jeffrey Biles
2020-03-18 17:00:58 -07:00
parent d415b86386
commit f87823db63
3 changed files with 3 additions and 8 deletions

View File

@@ -20,7 +20,7 @@
</tbody>
<portal target="#modal-portal">
<ModalView :isOpened="!!openedEmail" :closeModal="() => {openedEmail = null;}">
<ModalView v-if="!!openedEmail" :closeModal="() => {openedEmail = null;}">
<MailView :email="openedEmail" />
</ModalView>
</portal>