2016-10-31 00:53:58 +09:00
|
|
|
import statusPoster from '../../services/status_poster/status_poster.service.js'
|
|
|
|
|
|
|
|
const PostStatusForm = {
|
2016-11-04 00:59:27 +09:00
|
|
|
props: [
|
|
|
|
'replyTo'
|
|
|
|
],
|
|
|
|
data () {
|
2016-10-31 00:53:58 +09:00
|
|
|
return {
|
|
|
|
newStatus: { }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2016-11-04 00:59:27 +09:00
|
|
|
postStatus (newStatus) {
|
2016-10-31 00:53:58 +09:00
|
|
|
statusPoster.postStatus({
|
|
|
|
status: newStatus.status,
|
2016-11-04 00:59:27 +09:00
|
|
|
store: this.$store,
|
|
|
|
inReplyToStatusId: this.replyTo
|
2016-10-31 00:53:58 +09:00
|
|
|
})
|
|
|
|
this.newStatus = { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default PostStatusForm
|