lemo-crm/web/app/components/form-input-modal-select.js
Shaun Chyxion 528e09dbdd init
2017-06-04 22:56:26 +08:00

13 lines
414 B
JavaScript

import Ember from 'ember';
import BaseFormInput from './base-form-input';
export default BaseFormInput.extend({
classNames: ['form-group'],
classNameBindings: ['hasError:has-error'],
hasError: Ember.computed('route.controller.errors', function() {
return this.get('errors.' + this.get('idField'));
}),
btnIcon: 'fa-server',
isFaBtnIcon: Ember.computed.match('btnIcon', /^fa-/)
});