Sha256: 29d02446e38e492cc5f2c851d7745e912a4f61c1707eef4f721925062c5ee5d9

Contents?: true

Size: 876 Bytes

Versions: 19

Compression:

Stored size: 876 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Switch, FieldLevelHelp } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import './HostObfuscationSwitcher.scss';

const HostObfuscationSwitcher = ({ hostObfuscationEnabled, handleToggle }) => (
  <div className="host_obfuscation_switcher">
    <span>Obfuscate host names</span>
    <FieldLevelHelp
      content={__('Obfuscate host names sent to the Red Hat cloud')}
    />
    <Switch
      size="mini"
      value={hostObfuscationEnabled}
      onChange={() => handleToggle(hostObfuscationEnabled)}
    />
  </div>
);

HostObfuscationSwitcher.propTypes = {
  hostObfuscationEnabled: PropTypes.bool,
  handleToggle: PropTypes.func.isRequired,
};

HostObfuscationSwitcher.defaultProps = {
  hostObfuscationEnabled: false,
};

export default HostObfuscationSwitcher;

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.18 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.18 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.13.1 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.13 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js