mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Trivial changes to poll plugin, including a small typo fix.
This commit is contained in:
parent
90430eda62
commit
8be37193ee
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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") + " "));
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue