Trivial changes to poll plugin, including a small typo fix.

This commit is contained in:
Robin Ward 2015-07-07 10:51:40 -04:00
parent 90430eda62
commit 8be37193ee
2 changed files with 6 additions and 6 deletions

View file

@ -1,8 +1,8 @@
export default Em.Controller.extend({
isMultiple: Em.computed.equal("poll.type", "multiple"),
isNumber: Em.computed.equal("poll.type", "number"),
isRandom : Em.computed.equal("poll.order", "random"),
isClosed: Em.computed.equal("poll.status", "closed"),
export default Ember.Controller.extend({
isMultiple: Ember.computed.equal("poll.type", "multiple"),
isNumber: Ember.computed.equal("poll.type", "number"),
isRandom : Ember.computed.equal("poll.order", "random"),
isClosed: Ember.computed.equal("poll.status", "closed"),
// shows the results when
// - poll is closed

View file

@ -20,7 +20,7 @@ export default {
// listen for back-end to tell us when a post has a poll
messageBus.subscribe("/polls", data => {
const post = container.lookup("controller:topic").get('modee.postStream').findLoadedPost(data.post_id);
const post = container.lookup("controller:topic").get('model.postStream').findLoadedPost(data.post_id);
// HACK to trigger the "postViewUpdated" event
Em.run.next(_ => post.set("cooked", post.get("cooked") + " "));
});