Sha256: 4692227da9bf0b9ddfa86350887658a80caa1bc6fd52cfc36b140b658eed8765

Contents?: true

Size: 878 Bytes

Versions: 82

Compression:

Stored size: 878 Bytes

Contents

import React from 'react';
import { useSelector } from 'react-redux';
import { SettingsWarning } from './SettingsWarning';
import {
  selectAutoUploadEnabled,
  selectHostObfuscationEnabled,
} from '../../../InventorySettings/InventorySettingsSelectors';
import { CONNECTOR_STATUS } from '../CloudConnectorButton/CloudConnectorConstants';
import { selectStatus } from '../CloudConnectorButton/CloudConnectorSelectors';

const ConnectedSettingsWarning = () => {
  const autoUpload = useSelector(selectAutoUploadEnabled);
  const hostObfuscation = useSelector(selectHostObfuscationEnabled);
  const isCloudConnector =
    useSelector(selectStatus) === CONNECTOR_STATUS.RESOLVED;
  return (
    <SettingsWarning
      autoUpload={autoUpload}
      hostObfuscation={hostObfuscation}
      isCloudConnector={isCloudConnector}
    />
  );
};

export default ConnectedSettingsWarning;

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-7.0.48 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsWarning/index.js