diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-04 13:57:24 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-04 13:57:24 +0100 |
| commit | 670298cca1fd6de8c63ba3e4fb03ae3307eff07d (patch) | |
| tree | 584fa1a69a2cae041b2a7a49b9513d24cea67f8c /src/components/status/status.js | |
| parent | 51473f04842af5f135a248b09b55b3f9a381bc97 (diff) | |
| parent | 2269e815e1829558295e8c1d83ed1235644e02dd (diff) | |
Merge branch 'develop' into feature/hash-routed
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 27911478..40589ea5 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -5,9 +5,13 @@ import DeleteButton from '../delete_button/delete_button.vue' import PostStatusForm from '../post_status_form/post_status_form.vue' const Status = { - props: [ 'statusoid' ], + props: [ + 'statusoid', + 'expandable' + ], data: () => ({ - replying: false + replying: false, + expanded: false }), computed: { retweet () { return !!this.statusoid.retweeted_status }, @@ -33,6 +37,9 @@ const Status = { methods: { toggleReplying () { this.replying = !this.replying + }, + toggleExpanded () { + this.$emit('toggleExpanded') } } } |
