forked from theforeman/foreman_remote_execution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRexInterface.js
More file actions
39 lines (33 loc) · 955 Bytes
/
RexInterface.js
File metadata and controls
39 lines (33 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import LabelIcon from 'foremanReact/components/common/LabelIcon';
import { FormGroup, TextInput } from '@patternfly/react-core';
const RexInterface = ({ isLoading, onChange }) => (
<FormGroup
label={__('Remote Execution Interface')}
fieldId="reg_rex_interface"
labelIcon={
<LabelIcon
text={__('Identifier of the Host interface for Remote execution')}
/>
}
>
<TextInput
ouiaId="reg_rex_interface_input"
type="text"
onBlur={e => onChange({ remoteExecutionInterface: e.target.value })}
id="reg_rex_interface_input"
isDisabled={isLoading}
/>
</FormGroup>
);
RexInterface.propTypes = {
onChange: PropTypes.func,
isLoading: PropTypes.bool,
};
RexInterface.defaultProps = {
onChange: undefined,
isLoading: false,
};
export default RexInterface;