Make status expandable into conversation.

This commit is contained in:
Roger Braun 2017-02-04 13:53:28 +01:00
parent b420b5838c
commit 2269e815e1
2 changed files with 15 additions and 6 deletions

View file

@ -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')
}
}
}