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
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|