diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-06-19 09:23:55 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-06-19 09:23:55 +0000 |
| commit | a425cfd04416483fdcd127bdfbd3295d99c1a889 (patch) | |
| tree | 22180d0b42e0dde55698460e60ff9c0bdab97da2 /src/components/retweet_button/retweet_button.js | |
| parent | d4f5b3feec1da69b69181b0e8a471bf94e5a5e4c (diff) | |
| parent | 556eb4b8a33346ecfee57ed2b3e0f65584ff8359 (diff) | |
Merge branch 'feature/unrepeats' into 'develop'
Add unretweet support
Closes #103
See merge request pleroma/pleroma-fe!284
Diffstat (limited to 'src/components/retweet_button/retweet_button.js')
| -rw-r--r-- | src/components/retweet_button/retweet_button.js | 3 |
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 4a43542d..9833e8b2 100644 --- a/src/components/retweet_button/retweet_button.js +++ b/src/components/retweet_button/retweet_button.js @@ -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(() => { @@ -20,6 +22,7 @@ const RetweetButton = { classes () { return { 'retweeted': this.status.repeated, + 'retweeted-empty': !this.status.repeated, 'animate-spin': this.animated } } |
