DEV: add a plugin outlet below wizard extra description (#26290)

This commit is contained in:
Neil Lalonde 2024-03-21 11:10:25 -04:00 committed by GitHub
parent d2a730b8b5
commit 91d0a14a72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,9 @@
import Component from "@glimmer/component";
import { assert } from "@ember/debug";
import { hash } from "@ember/helper";
import { dasherize } from "@ember/string";
import { htmlSafe } from "@ember/template";
import PluginOutlet from "discourse/components/plugin-outlet";
import fields from "./fields";
export default class WizardFieldComponent extends Component {
@ -77,6 +79,15 @@ export default class WizardFieldComponent extends Component {
<div class="wizard-container__description extra">
{{htmlSafe this.field.extraDescription}}
</div>
<PluginOutlet
@name="below-wizard-extra-description"
@outletArgs={{hash
id=@field.id
disabled=@field.disabled
value=@field.value
}}
/>
{{/if}}
</div>
</template>