diff --git a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 index 74d5b848..bdef2d67 100644 --- a/assets/javascripts/discourse/components/wizard-custom-field.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-field.js.es6 @@ -5,9 +5,9 @@ export default Ember.Component.extend({ isDropdown: Ember.computed.equal('field.type', 'dropdown'), disableId: Ember.computed.not('field.isNew'), choicesTypes: ['translation', 'preset', 'custom'], - choicesTranslation: Ember.computed.equal('choicesType', 'translation'), - choicesPreset: Ember.computed.equal('choicesType', 'preset'), - choicesCustom: Ember.computed.equal('choicesType', 'custom'), + choicesTranslation: Ember.computed.equal('field.choices_type', 'translation'), + choicesPreset: Ember.computed.equal('field.choices_type', 'preset'), + choicesCustom: Ember.computed.equal('field.choices_type', 'custom'), @computed('field.type') isInput: (type) => type === 'text' || type === 'textarea', diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs index fa59262c..5e15075c 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs @@ -70,7 +70,7 @@ {{i18n 'admin.wizard.field.choices_label'}} - {{combo-box value=choicesType content=choicesTypes none="admin.wizard.field.choices_type"}} + {{combo-box value=field.choices_type content=choicesTypes none="admin.wizard.field.choices_type"}} {{#if choicesTranslation}}