webpack/scenes/Hosts/ChangeContentSource/components/FormField.js in katello-4.6.2.1 vs webpack/scenes/Hosts/ChangeContentSource/components/FormField.js in katello-4.7.0.rc1

- old
+ new

@@ -7,19 +7,19 @@ } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; const FormField = ({ - label, id, value, items, onChange, isLoading, contentHostsCount, + label, id, value, items, onChange, isDisabled, }) => ( <GridItem span={7}> <FormGroup label={label} fieldId={id} isRequired> <FormSelect value={value} onChange={v => onChange(v)} className="without_select2" - isDisabled={isLoading || items.length === 0 || contentHostsCount === 0} + isDisabled={isDisabled} id={`${id}_select`} isRequired > <FormSelectOption key={0} value="" label={__('Select ...')} /> {items.map(item => ( @@ -34,10 +34,9 @@ label: PropTypes.string.isRequired, id: PropTypes.string.isRequired, value: PropTypes.string.isRequired, items: PropTypes.arrayOf(PropTypes.shape({})).isRequired, onChange: PropTypes.func.isRequired, - isLoading: PropTypes.bool.isRequired, - contentHostsCount: PropTypes.number.isRequired, + isDisabled: PropTypes.bool.isRequired, }; export default FormField;