Sha256: 07929b832a1ba008e34b587364b721669d074425e5fc575447f11284a71613f9

Contents?: true

Size: 848 Bytes

Versions: 19

Compression:

Stored size: 848 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 './excludePackagesSwitcher.scss';

const ExcludePackagesSwitcher = ({ excludePackages, handleToggle }) => (
  <div className="exclude_packages_switcher">
    <span>Exclude Packages</span>
    <FieldLevelHelp
      content={__('Exclude packages from being uploaded to the Red Hat cloud')}
    />
    <Switch
      size="mini"
      value={excludePackages}
      onChange={() => handleToggle(excludePackages)}
    />
  </div>
);

ExcludePackagesSwitcher.propTypes = {
  excludePackages: PropTypes.bool,
  handleToggle: PropTypes.func.isRequired,
};

ExcludePackagesSwitcher.defaultProps = {
  excludePackages: false,
};

export default ExcludePackagesSwitcher;

Version data entries

19 entries across 19 versions & 1 rubygems

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