Add replies.
This commit is contained in:
parent
78538da82f
commit
7e2c52b12c
3 changed files with 25 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue