mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 09:54:46 +08:00
Wizard - Color Scheme Step
This commit is contained in:
@ -6,6 +6,9 @@ export default Ember.Component.extend({
|
||||
@computed('field.id')
|
||||
inputClassName: id => `field-${Ember.String.dasherize(id)}`,
|
||||
|
||||
@computed('field.type')
|
||||
inputComponentName: type => `wizard-field-${type}`
|
||||
@computed('field.type', 'field.id')
|
||||
inputComponentName(type, id) {
|
||||
return (type === 'component') ? Ember.String.dasherize(id) : `wizard-field-${type}`;
|
||||
}
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user