Sha256: 98009b97ba73c01e936f71c17e6ce4b0518a2b968bc3feb59dd0f0a269b57baf

Contents?: true

Size: 720 Bytes

Versions: 21

Compression:

Stored size: 720 Bytes

Contents

import { selectAPIResponse } from 'foremanReact/redux/API/APISelectors';
import { INVENTORY_SETTINGS } from './InventorySettingsConstants';

export const selectSettings = state =>
  selectAPIResponse(state, INVENTORY_SETTINGS);

export const selectAutoUploadEnabled = state =>
  selectSettings(state).autoUploadEnabled;

export const selectHostObfuscationEnabled = state =>
  selectSettings(state).hostObfuscationEnabled;

export const selectIpsObfuscationEnabled = state =>
  selectSettings(state).ipsObfuscationEnabled;

export const selectExcludePackages = state =>
  selectSettings(state).excludePackagesEnabled;

export const selectMismatchDelete = state =>
  selectSettings(state).allowAutoInsightsMismatchDelete;

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-9.0.51 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-8.0.51 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-8.0.50 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-8.0.49 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js
foreman_rh_cloud-8.0.48 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsSelectors.js