diff --git a/webpack/react_app/components/RegistrationExtension/RexPull.js b/webpack/react_app/components/RegistrationExtension/RexPull.js index 8ab558299..e2cd460b8 100644 --- a/webpack/react_app/components/RegistrationExtension/RexPull.js +++ b/webpack/react_app/components/RegistrationExtension/RexPull.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import LabelIcon from 'foremanReact/components/common/LabelIcon'; +import { Alert } from 'patternfly-react'; import { FormGroup, @@ -23,6 +24,24 @@ const options = (value = '') => { ); }; +const showPullWarning = (defaultValue, currentValue) => { + if (currentValue === 'false') { + return; + } + + if (defaultValue === true || currentValue === 'true') { + return ( +