add new module and modal to post new status
This commit is contained in:
parent
90981dcce6
commit
f4bbf1d4e2
7 changed files with 100 additions and 3 deletions
25
src/components/post_status_modal/post_status_modal.js
Normal file
25
src/components/post_status_modal/post_status_modal.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import PostStatusForm from '../post_status_form/post_status_form.vue'
|
||||
|
||||
const PostStatusModal = {
|
||||
components: {
|
||||
PostStatusForm
|
||||
},
|
||||
computed: {
|
||||
isLoggedIn () {
|
||||
return !!this.$store.state.users.currentUser
|
||||
},
|
||||
isOpen () {
|
||||
return this.isLoggedIn && this.$store.state.postStatus.modalActivated
|
||||
},
|
||||
params () {
|
||||
return this.$store.state.postStatus.params
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
closeModal () {
|
||||
this.$store.dispatch('closePostStatusModal')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export default PostStatusModal
|
Loading…
Add table
Add a link
Reference in a new issue