-
Notifications
You must be signed in to change notification settings - Fork 991
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #36688 - Provide option to use wget for the new Register Host f…
…eature
- Loading branch information
Showing
8 changed files
with
132 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...act_app/routes/RegistrationCommands/RegistrationCommandsPage/components/fields/UseWget.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import { FormGroup, Checkbox } from '@patternfly/react-core'; | ||
import LabelIcon from '../../../../../components/common/LabelIcon'; | ||
|
||
import { translate as __ } from '../../../../../common/I18n'; | ||
|
||
const UseWget = ({ useWget, handleUseWget, isLoading }) => ( | ||
<FormGroup fieldId="reg_use_wget"> | ||
<Checkbox | ||
label={ | ||
<span> | ||
{__('Use wget')}{' '} | ||
<LabelIcon | ||
text={__( | ||
'If the target machine does not have curl installed, you can alternativly use wget for the whole registration process.' | ||
)} | ||
/> | ||
</span> | ||
} | ||
id="reg_use_wget" | ||
onChange={() => handleUseWget(!useWget)} | ||
isDisabled={isLoading} | ||
isChecked={useWget} | ||
/> | ||
</FormGroup> | ||
); | ||
|
||
UseWget.propTypes = { | ||
useWget: PropTypes.bool.isRequired, | ||
handleUseWget: PropTypes.func.isRequired, | ||
isLoading: PropTypes.bool.isRequired, | ||
}; | ||
|
||
export default UseWget; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters