This commit is contained in:
Henry Jameson 2020-06-13 14:42:53 +03:00
parent 8cd5041663
commit ac270d7060
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,9 @@ const PostStatusModal = {
} }
}, },
computed: { computed: {
isLoggedIn () {
return !!this.$store.state.users.currentUser
},
modalActivated () { modalActivated () {
return this.$store.state.postStatus.modalActivated return this.$store.state.postStatus.modalActivated
}, },

View File

@ -1,5 +1,6 @@
<template> <template>
<Modal <Modal
v-if="isLoggedIn && !resettingForm"
:is-open="modalActivated" :is-open="modalActivated"
class="post-form-modal-view" class="post-form-modal-view"
@backdropClicked="closeModal" @backdropClicked="closeModal"