From 3646d45110b9b5a3dc610a17d3a0093f090c103b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 22 Jun 2016 23:34:39 +0800 Subject: [PATCH] FIX: Voters arrow shown on polls with invalid public config. --- .../discourse/templates/components/poll-results-number.hbs | 2 +- .../discourse/templates/components/poll-results-standard.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-number.hbs b/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-number.hbs index c00255a09..ace81e997 100644 --- a/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-number.hbs +++ b/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-number.hbs @@ -2,6 +2,6 @@ {{{averageRating}}} -{{#if poll.public}} +{{#if isPublic}} {{poll-results-number-voters poll=poll}} {{/if}} diff --git a/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-standard.hbs b/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-standard.hbs index 5f939cbc8..d51804808 100644 --- a/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-standard.hbs +++ b/plugins/poll/assets/javascripts/discourse/templates/components/poll-results-standard.hbs @@ -10,7 +10,7 @@
- {{#if poll.public}} + {{#if isPublic}} {{poll-results-standard-voters option=option}} {{/if}}