diff options
| author | Roger Braun <roger@rogerbraun.net> | 2016-11-03 16:59:27 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2016-11-03 16:59:27 +0100 |
| commit | 7e2c52b12cf6883f32716230b0fdcdad7a26632b (patch) | |
| tree | 1feea035af46c2924150fecdf8cdeb5a3b2abfdb /src/components/status/status.js | |
| parent | 78538da82faf56dca7850e0bbb9f258b26c739fe (diff) | |
Add replies.
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index f3816daa..2e6565e8 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -1,8 +1,12 @@ import Attachment from '../attachment/attachment.vue' import FavoriteButton from '../favorite_button/favorite_button.vue' +import PostStatusForm from '../post_status_form/post_status_form.vue' const Status = { props: [ 'statusoid' ], + data: () => ({ + replying: false + }), computed: { retweet () { return !!this.statusoid.retweeted_status }, retweeter () { return this.statusoid.user.name }, @@ -16,7 +20,13 @@ const Status = { }, components: { Attachment, - FavoriteButton + FavoriteButton, + PostStatusForm + }, + methods: { + toggleReplying () { + this.replying = !this.replying + } } } |
