2020-03-22 04:30:11 +11:00
|
|
|
import { connectors } from '../lib/custom-wizard';
|
2020-03-23 16:41:04 +11:00
|
|
|
import { gt, or, alias } from "@ember/object/computed";
|
|
|
|
import { computed, observes} from "@ember/object";
|
2020-03-22 04:30:11 +11:00
|
|
|
|
|
|
|
export default Ember.Component.extend({
|
2020-03-24 20:35:46 +11:00
|
|
|
classNameBindings: [':input-pair', 'hasConnector::no-connector'],
|
2020-03-22 17:47:56 +11:00
|
|
|
connectors: connectors,
|
2020-03-23 16:41:04 +11:00
|
|
|
hasConnector: or('options.enableConnectors', 'connectorKey'),
|
|
|
|
firstPair: gt('pair.index', 0),
|
|
|
|
showRemove: alias('firstPair'),
|
|
|
|
showJoin: computed('pair.pairCount', function() {
|
|
|
|
return this.pair.index < (this.pair.pairCount - 1);
|
|
|
|
})
|
2020-03-22 04:30:11 +11:00
|
|
|
})
|