aboutsummaryrefslogtreecommitdiff
path: root/src/components/post_status_form
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-03 16:59:27 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-03 16:59:27 +0100
commit7e2c52b12cf6883f32716230b0fdcdad7a26632b (patch)
tree1feea035af46c2924150fecdf8cdeb5a3b2abfdb /src/components/post_status_form
parent78538da82faf56dca7850e0bbb9f258b26c739fe (diff)
Add replies.
Diffstat (limited to 'src/components/post_status_form')
-rw-r--r--src/components/post_status_form/post_status_form.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 596c9f58..0944d841 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -1,16 +1,20 @@
import statusPoster from '../../services/status_poster/status_poster.service.js'
const PostStatusForm = {
- data() {
+ props: [
+ 'replyTo'
+ ],
+ data () {
return {
newStatus: { }
}
},
methods: {
- postStatus(newStatus) {
+ postStatus (newStatus) {
statusPoster.postStatus({
status: newStatus.status,
- store: this.$store
+ store: this.$store,
+ inReplyToStatusId: this.replyTo
})
this.newStatus = { }
}