Show results by default for closed polls

This commit is contained in:
Kane York 2014-04-10 00:32:49 -07:00 committed by riking
parent 6daef624c3
commit 6e8392bf8e

View file

@ -36,7 +36,7 @@ var Poll = Discourse.Model.extend({
var PollController = Discourse.Controller.extend({
poll: null,
showResults: false,
showResults: Em.computed.oneWay('poll.post.poll_details.closed'),
disableRadio: Em.computed.any('poll.post.poll_details.closed', 'loading'),