From 7ecc0e2cdb99fc70a4198c323ee555ae5801a0cf Mon Sep 17 00:00:00 2001 From: Arne Schauf Date: Sun, 4 Mar 2018 03:38:27 +0100 Subject: fix voting stuff --- src/components/CommentVoter.vue | 8 ++++---- src/components/UploadVoter.vue | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/CommentVoter.vue b/src/components/CommentVoter.vue index 6f2ce0d..9ab9e72 100644 --- a/src/components/CommentVoter.vue +++ b/src/components/CommentVoter.vue @@ -7,9 +7,9 @@ {{ comment.voting.sum }} - - - + + + You voted @@ -49,7 +49,7 @@ methods: { vote (impact) { let that = this - this.$http.post(`/comments/${this.comment.upload}/comments/${this.comment._id}/vote`, {impact: impact}).then(response => that.$emit('voted')) + this.$http.post(`/uploads/${this.comment.upload}/comments/${this.comment._id}/vote`, {impact: impact}).then(response => that.$emit('voted')) }, }, } diff --git a/src/components/UploadVoter.vue b/src/components/UploadVoter.vue index 563bc79..031cd82 100644 --- a/src/components/UploadVoter.vue +++ b/src/components/UploadVoter.vue @@ -7,7 +7,7 @@ {{ upload.voting.sum }} - + -- cgit v1.2.3-54-g00ecf