diff options
Diffstat (limited to 'src/components/TimelineContent.vue')
-rw-r--r-- | src/components/TimelineContent.vue | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/components/TimelineContent.vue b/src/components/TimelineContent.vue index e2423425..7e86b0cc 100644 --- a/src/components/TimelineContent.vue +++ b/src/components/TimelineContent.vue @@ -64,7 +64,8 @@ export default { }, mixins: [popoverMenu, currentUser], props: { - item: { type: Object, default: () => {} } + item: { type: Object, default: () => {} }, + parentAnnounce: { type: Object, default: () => {} } }, data() { return { @@ -131,10 +132,14 @@ export default { this.$root.$emit('composer-reply', this.item) }, boost() { + let params = { + post: this.item, + parentAnnounce: this.parentAnnounce + } if (this.isBoosted) { - this.$store.dispatch('postUnBoost', this.item) + this.$store.dispatch('postUnBoost', params) } else { - this.$store.dispatch('postBoost', this.item) + this.$store.dispatch('postBoost', params) } } } |