diff --git a/assets/javascripts/discourse/components/wizard-custom-input-selector.js.es6 b/assets/javascripts/discourse/components/wizard-custom-input-selector.js.es6 index 7c1067aa..abcef1fa 100644 --- a/assets/javascripts/discourse/components/wizard-custom-input-selector.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-input-selector.js.es6 @@ -51,8 +51,6 @@ export default Ember.Component.extend({ const types = [this.selectorType, this.inputType]; - console.log('running', types, option) - return option.split(',').filter(o => types.indexOf(o) !== -1).length }, diff --git a/assets/javascripts/discourse/components/wizard-custom-input.js.es6 b/assets/javascripts/discourse/components/wizard-custom-input.js.es6 index 0858fb7c..1dc54a8e 100644 --- a/assets/javascripts/discourse/components/wizard-custom-input.js.es6 +++ b/assets/javascripts/discourse/components/wizard-custom-input.js.es6 @@ -7,7 +7,7 @@ import { default as discourseComputed, on } from 'discourse-common/utils/decorators'; -import { computed } from "@ember/object"; +import { computed, set } from "@ember/object"; import { alias } from "@ember/object/computed"; export default Ember.Component.extend({ @@ -48,7 +48,7 @@ export default Ember.Component.extend({ const pairs = this.get('input.pairs'); const pairCount = pairs.length + 1; - pairs.forEach(p => (p.set('pairCount', pairCount))); + pairs.forEach(p => (set(p, 'pairCount', pairCount))); pairs.pushObject( newPair(Object.assign( @@ -65,7 +65,7 @@ export default Ember.Component.extend({ removePair(pair) { const pairs = this.get('input.pairs'); const pairCount = pairs.length - 1; - pairs.forEach(p => (p.set('pairCount', pairCount))); + pairs.forEach(p => (set(p, 'pairCount', pairCount))); pairs.removeObject(pair); } } diff --git a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs index 7f6085de..958a53c0 100644 --- a/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs +++ b/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs @@ -279,7 +279,7 @@ {{/if}} {{#if addToGroup}} -