From 7e2c52b12cf6883f32716230b0fdcdad7a26632b Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 3 Nov 2016 16:59:27 +0100 Subject: Add replies. --- src/components/post_status_form/post_status_form.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/components/post_status_form') 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 = { } } -- cgit v1.2.3-70-g09d2