diff --git a/assets/javascripts/discourse/templates/components/custom-field-input.hbs b/assets/javascripts/discourse/components/custom-field-input.hbs
similarity index 63%
rename from assets/javascripts/discourse/templates/components/custom-field-input.hbs
rename to assets/javascripts/discourse/components/custom-field-input.hbs
index 4e3fa2f0..82c7c62a 100644
--- a/assets/javascripts/discourse/templates/components/custom-field-input.hbs
+++ b/assets/javascripts/discourse/components/custom-field-input.hbs
@@ -1,19 +1,19 @@
-{{#if showInputs}}
+{{#if this.showInputs}}
{{wizard-subscription-selector
- value=field.klass
+ value=this.field.klass
feature="custom_field"
attribute="klass"
- onChange=(action (mut field.klass))
+ onChange=(action (mut this.field.klass))
options=(hash none="admin.wizard.custom_field.klass.select")
}}
|
{{wizard-subscription-selector
- value=field.type
+ value=this.field.type
feature="custom_field"
attribute="type"
- onChange=(action (mut field.type))
+ onChange=(action (mut this.field.type))
options=(hash none="admin.wizard.custom_field.type.select")
}}
|
@@ -25,48 +25,48 @@
{{multi-select
- value=field.serializers
- content=serializerContent
- onChange=(action (mut field.serializers))
+ value=this.field.serializers
+ content=this.serializerContent
+ onChange=(action (mut this.field.serializers))
options=(hash none="admin.wizard.custom_field.serializers.select")
}}
|
- {{#if loading}}
+ {{#if this.loading}}
{{loading-spinner size="small"}}
{{else}}
- {{#if saveIcon}}
- {{d-icon saveIcon}}
+ {{#if this.saveIcon}}
+ {{d-icon this.saveIcon}}
{{/if}}
{{/if}}
{{d-button
action=(action "destroy")
icon="trash-alt"
class="destroy"
- disabled=destroyDisabled
+ disabled=this.destroyDisabled
}}
{{d-button
icon="save"
action=(action "save")
- disabled=saveDisabled
+ disabled=this.saveDisabled
class="save"
}}
- {{d-button action=(action "close") icon="times" disabled=closeDisabled}}
+ {{d-button action=(action "close") icon="times" disabled=this.closeDisabled}}
|
{{else}}
- |
- |
- |
+ |
+ |
+ |
- {{#if isExternal}}
+ {{#if this.isExternal}}
—
{{else}}
- {{#each field.serializers as |serializer|}}
+ {{#each this.field.serializers as |serializer|}}
{{/each}}
{{/if}}
|
- {{#if isExternal}}
+ {{#if this.isExternal}}
|