0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-custom-input.js.es6

20 Zeilen
450 B
Text

2020-03-21 18:30:11 +01:00
import { newPair } from '../lib/custom-wizard';
2018-05-24 07:34:58 +02:00
2017-10-17 15:17:53 +02:00
export default Ember.Component.extend({
2018-05-24 07:34:58 +02:00
classNames: 'custom-input',
2020-03-21 18:30:11 +01:00
outputConnectorKey: 'admin.wizard.connector.prefill',
outputPrefixKey: 'admin.wizard.if',
actions: {
addPair() {
this.get('input.pairs').pushObject(
newPair(this.options, this.input.pairs.length)
);
},
removePair(pair) {
this.get('input.pairs').removeObject(pair);
2017-10-17 15:17:53 +02:00
}
}
});