A platform for community discussion. Free, open, simple.
DEV: add outlet wrapper for category name field (#28858)
Amanda Alves Branquinhoad0ffab79fa5
diff --git a/app/assets/javascripts/discourse/app/components/category-name-fields.hbs b/app/assets/javascripts/discourse/app/components/category-name-fields.hbsindex 4e53107632b..82784f133a1 100644--- a/app/assets/javascripts/discourse/app/components/category-name-fields.hbs+++ b/app/assets/javascripts/discourse/app/components/category-name-fields.hbs@@ -1,21 +1,26 @@-<section class="field category-name-fields">- {{#unless this.category.isUncategorizedCategory}}+<PluginOutlet+ @name="category-name-fields-details"+ @outletArgs={{hash category=this.category}}+>+ <section class="field category-name-fields">+ {{#unless this.category.isUncategorizedCategory}}+ <section class="field-item">+ <label>{{i18n "category.name"}}</label>+ <TextField+ @value={{this.category.name}}+ @placeholderKey="category.name_placeholder"+ @maxlength="50"+ class="category-name"+ />+ </section>+ {{/unless}}<section class="field-item">- <label>{{i18n "category.name"}}</label>+ <label>{{i18n "category.slug"}}</label><TextField- @value={{this.category.name}}- @placeholderKey="category.name_placeholder"- @maxlength="50"- class="category-name"+ @value={{this.category.slug}}+ @placeholderKey="category.slug_placeholder"+ @maxlength="255"/></section>- {{/unless}}- <section class="field-item">- <label>{{i18n "category.slug"}}</label>- <TextField- @value={{this.category.slug}}- @placeholderKey="category.slug_placeholder"- @maxlength="255"- /></section>-</section>\ No newline at end of file+</PluginOutlet>\ No newline at end of file