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

25 行
449 B
JavaScript
Raw 通常表示 履歴

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