pleroma-fe/src/components/post_status_form/post_status_form.js

25 lines
449 B
JavaScript
Raw Normal View History

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