# Umfragestandard überschreiben, damit "public=true"

**URL:** https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722
**Category:** Development
**Tags:** polls
**Created:** [25. Mai 2023 um 07:28 UTC](https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722 "2023-05-25T07:28:55Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [6. November 2023 um 21:25 UTC](https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722/9 "2023-11-06T21:25:14Z")

</div>

Ich habe herausgefunden, dass das Modal, das dies aufgerufen hat, gemäß Folgendem refaktorisiert wurde:

> [@Converting modals from legacy controllers to new DModal component API](https://meta.discourse.org/t/converting-modals-from-legacy-controllers-to-new-dmodal-component-api/268057):
>
> information_source If you’re implementing a new Modal, check out the main docs [here](https://meta.discourse.org/t/268304). This topic describes how to migrate an existing controller-based Modal to the new Component-based API. In the past, Discourse used an Ember-Controller-based API for rendering modals. To invoke the modal, you would pass a string with the name of the controller to showModal(). Under the covers, this made use of Ember’s Route#renderTemplate API, which is deprecated in Ember 3.x and will be removed in Ember 4.x…

Ich kann jedoch nicht herausfinden, wie ich über die API damit interagieren kann. Die neue Modal-Datei ist hier:

[https://github.com/discourse/discourse/blob/main/plugins/poll/assets/javascripts/discourse/components/modal/poll-ui-builder.js](https://github.com/discourse/discourse/blob/main/plugins/poll/assets/javascripts/discourse/components/modal/poll-ui-builder.js)

Ich kann nicht herausfinden, wie ich dies jetzt aufrufen kann, da die Dokumentation dies meines Erachtens nicht abdeckt. Kann jemand helfen?

---

_[View the full topic](https://meta.discourse.org/t/overriding-poll-default-so-public-true/279722)._
