Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { computed } from '@ember/object';
import Form from 'ember-bootstrap/components/base/bs-form';
export default Form.extend({
layoutClass: computed('formLayout', function() {
let layout = this.get('formLayout');
return layout === 'vertical' ? 'form' : `form-${layout}`;
}).readOnly()
});
import { computed } from '@ember/object';
import Form from 'ember-bootstrap/components/base/bs-form';
export default Form.extend({
layoutClass: computed('formLayout', function() {
let layout = this.get('formLayout');
return layout === 'inline' ? 'form-inline' : null;
}).readOnly()
});