Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +01:00
14 Zeilen
Kein EOL
541 B
JavaScript
14 Zeilen
Kein EOL
541 B
JavaScript
import { connectors } from '../lib/custom-wizard';
|
|
import { gt, or, alias } from "@ember/object/computed";
|
|
import { computed, observes} from "@ember/object";
|
|
|
|
export default Ember.Component.extend({
|
|
classNameBindings: [':input-pair', 'hasConnector::no-connector'],
|
|
connectors: connectors,
|
|
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);
|
|
})
|
|
}) |