aboutsummaryrefslogtreecommitdiff
path: root/src/components/retweet_button/retweet_button.js
diff options
context:
space:
mode:
authorJiayi Zheng <thebluber@gmail.com>2016-11-13 17:09:16 +0100
committerJiayi Zheng <thebluber@gmail.com>2016-11-13 17:09:16 +0100
commit11125abeeba1e945461ac5d1708e89cac7bf0714 (patch)
tree6913fafe918cf8b5196cb21b891855b8585618df /src/components/retweet_button/retweet_button.js
parent242ae8e91b1586aee185873b2f2d10bb52495ef3 (diff)
Implement retweet action
Diffstat (limited to 'src/components/retweet_button/retweet_button.js')
-rw-r--r--src/components/retweet_button/retweet_button.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/retweet_button/retweet_button.js b/src/components/retweet_button/retweet_button.js
index 42da2531..e7318dc5 100644
--- a/src/components/retweet_button/retweet_button.js
+++ b/src/components/retweet_button/retweet_button.js
@@ -2,6 +2,9 @@ const RetweetButton = {
props: [ 'status' ],
methods: {
retweet () {
+ if (!this.status.repeated) {
+ this.$store.dispatch('retweet', {id: this.status.id})
+ }
}
},
computed: {