Sha256: 2f3906be506ae74590d4755038a67076534216692f4c389fb8f760393bbf04a9
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import ExtSelect from '../../common/ExtSelect'; import RailsData from '../../common/RailsData' const ScmTypeSelector= ({ label, hidden, editable, viewText, selectValue, onChange, options, }) =>{ return ( <div className="form-group"> <label className="col-md-2 control-label">{label}</label> <div className="col-md-4"> <ExtSelect editable={ editable } viewText={viewText} selectValue={selectValue} onChange={onChange} options={options} /> <RailsData key='ansible_playbook_id' view='ansible_playbook' parameter='scm_type' value={selectValue} /> </div> </div> ); }; ScmTypeSelector.propTypes = { label: PropTypes.string.isRequired, editable: PropTypes.bool.isRequired, viewText: PropTypes.string, selectValue: PropTypes.string, onChange: PropTypes.func.isRequired, options: PropTypes.object, }; export default ScmTypeSelector;
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_acd-0.7.0 | webpack/components/SyncGitRepo/components/ScmTypeSelector.js |