DEV: Add new plugin outlets to edit topic area (#29951)
This PR adds new wrapper plugin outlets in the edit topic area. Adding these wrapper plugin outlets gives us easy access to `__before` and `__after`.
This commit is contained in:
parent
5db0eba0a8
commit
469374e063
|
@ -52,22 +52,36 @@
|
||||||
<div class="edit-topic-title">
|
<div class="edit-topic-title">
|
||||||
<PrivateMessageGlyph @shouldShow={{this.model.isPrivateMessage}} />
|
<PrivateMessageGlyph @shouldShow={{this.model.isPrivateMessage}} />
|
||||||
|
|
||||||
|
<PluginOutlet
|
||||||
|
@name="edit-topic-title"
|
||||||
|
@outletArgs={{hash model=this.model buffered=this.buffered}}
|
||||||
|
>
|
||||||
<TextField
|
<TextField
|
||||||
@id="edit-title"
|
@id="edit-title"
|
||||||
@value={{this.buffered.title}}
|
@value={{this.buffered.title}}
|
||||||
@maxlength={{this.siteSettings.max_topic_title_length}}
|
@maxlength={{this.siteSettings.max_topic_title_length}}
|
||||||
@autofocus="true"
|
@autofocus="true"
|
||||||
/>
|
/>
|
||||||
|
</PluginOutlet>
|
||||||
|
|
||||||
{{#if this.showCategoryChooser}}
|
{{#if this.showCategoryChooser}}
|
||||||
|
<PluginOutlet
|
||||||
|
@name="edit-topic-category"
|
||||||
|
@outletArgs={{hash model=this.model buffered=this.buffered}}
|
||||||
|
>
|
||||||
<CategoryChooser
|
<CategoryChooser
|
||||||
@value={{this.buffered.category_id}}
|
@value={{this.buffered.category_id}}
|
||||||
@onChange={{action "topicCategoryChanged"}}
|
@onChange={{action "topicCategoryChanged"}}
|
||||||
class="small"
|
class="small"
|
||||||
/>
|
/>
|
||||||
|
</PluginOutlet>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.canEditTags}}
|
{{#if this.canEditTags}}
|
||||||
|
<PluginOutlet
|
||||||
|
@name="edit-topic-tags"
|
||||||
|
@outletArgs={{hash model=this.model buffered=this.buffered}}
|
||||||
|
>
|
||||||
<MiniTagChooser
|
<MiniTagChooser
|
||||||
@value={{this.buffered.tags}}
|
@value={{this.buffered.tags}}
|
||||||
@onChange={{action "topicTagsChanged"}}
|
@onChange={{action "topicTagsChanged"}}
|
||||||
|
@ -79,6 +93,8 @@
|
||||||
useHeaderFilter=true
|
useHeaderFilter=true
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</PluginOutlet>
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
|
|
Loading…
Reference in New Issue