Implement retweet action

This commit is contained in:
Jiayi Zheng 2016-11-13 17:09:16 +01:00
parent 242ae8e91b
commit 11125abeeb
3 changed files with 13 additions and 1 deletions

View file

@ -2,6 +2,9 @@ const RetweetButton = {
props: [ 'status' ],
methods: {
retweet () {
if (!this.status.repeated) {
this.$store.dispatch('retweet', {id: this.status.id})
}
}
},
computed: {