Add unretweet support
This commit is contained in:
parent
d4f5b3feec
commit
d05fcfa1a8
2 changed files with 11 additions and 0 deletions
|
@ -9,6 +9,8 @@ const RetweetButton = {
|
|||
retweet () {
|
||||
if (!this.status.repeated) {
|
||||
this.$store.dispatch('retweet', {id: this.status.id})
|
||||
} else {
|
||||
this.$store.dispatch('unretweet', {id: this.status.id})
|
||||
}
|
||||
this.animated = true
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue