Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-10 04:12:53 +01:00
19 Zeilen
450 B
JavaScript
19 Zeilen
450 B
JavaScript
import { newPair } from '../lib/custom-wizard';
|
|
|
|
export default Ember.Component.extend({
|
|
classNames: 'custom-input',
|
|
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);
|
|
}
|
|
}
|
|
});
|