mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: add a plugin outlet below wizard extra description (#26290)
This commit is contained in:
parent
d2a730b8b5
commit
91d0a14a72
@ -1,7 +1,9 @@
|
|||||||
import Component from "@glimmer/component";
|
import Component from "@glimmer/component";
|
||||||
import { assert } from "@ember/debug";
|
import { assert } from "@ember/debug";
|
||||||
|
import { hash } from "@ember/helper";
|
||||||
import { dasherize } from "@ember/string";
|
import { dasherize } from "@ember/string";
|
||||||
import { htmlSafe } from "@ember/template";
|
import { htmlSafe } from "@ember/template";
|
||||||
|
import PluginOutlet from "discourse/components/plugin-outlet";
|
||||||
import fields from "./fields";
|
import fields from "./fields";
|
||||||
|
|
||||||
export default class WizardFieldComponent extends Component {
|
export default class WizardFieldComponent extends Component {
|
||||||
@ -77,6 +79,15 @@ export default class WizardFieldComponent extends Component {
|
|||||||
<div class="wizard-container__description extra">
|
<div class="wizard-container__description extra">
|
||||||
{{htmlSafe this.field.extraDescription}}
|
{{htmlSafe this.field.extraDescription}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<PluginOutlet
|
||||||
|
@name="below-wizard-extra-description"
|
||||||
|
@outletArgs={{hash
|
||||||
|
id=@field.id
|
||||||
|
disabled=@field.disabled
|
||||||
|
value=@field.value
|
||||||
|
}}
|
||||||
|
/>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user