From 080921e97750a8281ea60323999502808fddac94 Mon Sep 17 00:00:00 2001 From: shpuld Date: Wed, 5 Jun 2019 22:19:13 +0300 Subject: [PATCH] make poll voting update status, making it reactive, fix multiple choice voting --- src/components/poll/poll.vue | 13 ++++++++++--- src/components/poll/poll_vote/poll_vote.vue | 14 +++++++------- src/components/status/status.vue | 2 +- src/modules/statuses.js | 10 ++++++++++ src/services/api/api.service.js | 4 ---- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index 0a0b3175..824adb4d 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -2,11 +2,14 @@ + v-on:poll-refreshed="handlePollUpdate" + /> + :status-id="statusId" + v-on:user-has-voted="handlePollUpdate" + />