UX: Add info when poll is public.

This commit is contained in:
Guo Xiang Tan
2016-06-09 22:15:08 +08:00
parent ff577405ae
commit 5a03eca74a
4 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,7 @@ export default Ember.Controller.extend({
isNumber: Ember.computed.equal("poll.type", "number"),
isRandom : Ember.computed.equal("poll.order", "random"),
isClosed: Ember.computed.equal("poll.status", "closed"),
isPublic: Ember.computed.equal("poll.public", "true"),
pollsVoters: Ember.computed.alias("post.polls_voters"),
// shows the results when