mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
9 lines
267 B
Text
9 lines
267 B
Text
|
import computed from 'ember-addons/ember-computed-decorators';
|
||
|
|
||
|
export default Ember.Component.extend({
|
||
|
classNameBindings: [':wizard-field', ':text-field', 'field.invalid'],
|
||
|
|
||
|
@computed('field.id')
|
||
|
inputClassName: id => `field-${Ember.String.dasherize(id)}`
|
||
|
});
|