2016-11-13 15:42:56 +00:00
|
|
|
const RetweetButton = {
|
|
|
|
props: [ 'status' ],
|
|
|
|
methods: {
|
|
|
|
retweet () {
|
2016-11-13 16:09:16 +00:00
|
|
|
if (!this.status.repeated) {
|
|
|
|
this.$store.dispatch('retweet', {id: this.status.id})
|
|
|
|
}
|
2016-11-13 15:42:56 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
classes () {
|
|
|
|
return {
|
|
|
|
'retweeted': this.status.repeated
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RetweetButton
|