01f9b6e61f
started replacing ember-easy-form-extensions by ember-form-master-2000 and ember-validations by ember-cp-validations using ember-form-master-2000 in old 0.2 release cause newer releases does not work with ember 0.12 should move to ember 2.x as soon as possible therefore ember-easy-form-extensions has to be dropped and ember-i18n been updated part of #76
18 lines
530 B
JavaScript
18 lines
530 B
JavaScript
import FmRadio from 'ember-form-master-2000/components/fm-radio';
|
|
import Ember from 'ember';
|
|
|
|
export default FmRadio.reopen({
|
|
change() {
|
|
this.set('parentView.value', this.get('value'));
|
|
|
|
// backport feature: do not show errors before user interaction
|
|
this.sendAction('onUserInteraction');
|
|
},
|
|
icon: Ember.computed('parentView.optionIconPath', function() {
|
|
if(this.get('parentView.optionIconPath')) {
|
|
return this.get(this.get('parentView.optionIconPath'));
|
|
} else {
|
|
return null;
|
|
}
|
|
})
|
|
});
|