yandere_fe/src/components/retweet_button/retweet_button.js
2016-11-13 17:09:16 +01:00

20 lines
331 B
JavaScript

const RetweetButton = {
props: [ 'status' ],
methods: {
retweet () {
if (!this.status.repeated) {
this.$store.dispatch('retweet', {id: this.status.id})
}
}
},
computed: {
classes () {
return {
'retweeted': this.status.repeated
}
}
}
}
export default RetweetButton