cleanup
This commit is contained in:
parent
4f6c72894e
commit
9a659a2f1f
2 changed files with 3 additions and 5 deletions
|
|
@ -17,18 +17,16 @@ const PostStatusModal = {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
isLoggedIn() {
|
||||
return !!useUsersStore().currentUser
|
||||
},
|
||||
modalActivated() {
|
||||
return usePostStatusStore().modalActivated
|
||||
},
|
||||
isFormVisible() {
|
||||
return this.isLoggedIn && !this.resettingForm && this.modalActivated
|
||||
return this.loggedIn && !this.resettingForm && this.modalActivated
|
||||
},
|
||||
params() {
|
||||
return usePostStatusStore().params || {}
|
||||
},
|
||||
...mapState(useUsersStore, ['loggedIn']),
|
||||
},
|
||||
watch: {
|
||||
params(newVal, oldVal) {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<Modal
|
||||
v-if="isLoggedIn && !resettingForm"
|
||||
v-if="loggedIn && !resettingForm"
|
||||
:is-open="modalActivated"
|
||||
class="post-form-modal-view"
|
||||
@backdrop-clicked="closeModal"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue