Making polls ‘Show who voted’ by default

Polls seem to confuse almost everyone on a site I use (no ‘show who voted’, and even an insistence on using ‘multiple’ when they really meant to create a ‘single’). So I would find this theme component very useful. :+1:

I have been using it as a training exercise, but I think I may be getting confused. :slightly_smiling_face: Would it be possible to get a hint as to what I’m doing wrong?

<script type="text/discourse-plugin" version="0.8">

api.modifyClass("controller:poll-ui-builder", {
  onShow() {
    this.setProperties({
     publicPoll: true,
    });
    this._super(...arguments);
   } 
});

</script>
3 Likes