Sha256: 2685c88db8e3f12c80cbca6e56ecfdb392488457063bfbe8916cfb4bc8f55434

Contents?: true

Size: 835 Bytes

Versions: 15

Compression:

Stored size: 835 Bytes

Contents

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

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

15 entries across 15 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.12 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.12 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.12 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.11 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.11 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.11 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.10 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.10 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.10 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.9 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.9 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.9 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-0.9.8 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-1.0.8 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js
foreman_rh_cloud-2.0.8 webpack/ForemanInventoryUpload/Components/HostObfuscationSwitcher/HostObfuscationSwitcher.js