Sha256: f75508b45d58bd9ffd3dc611ca1614cfc6ca2911b98a092c14e1083bcdc37c3f

Contents?: true

Size: 525 Bytes

Versions: 86

Compression:

Stored size: 525 Bytes

Contents

import { get, post } from 'foremanReact/redux/API';
import {
  INVENTORY_SETTINGS,
  INVENTORY_GET_SETTINGS_PATH,
  INVENTORY_SET_SETTINGS_PATH,
} from './InventorySettingsConstants';

export const getSettings = () =>
  get({
    key: INVENTORY_SETTINGS,
    url: INVENTORY_GET_SETTINGS_PATH,
  });

export const setSetting = setting => dispatch => {
  dispatch(
    post({
      key: INVENTORY_SETTINGS,
      url: INVENTORY_SET_SETTINGS_PATH,
      params: setting,
      errorToast: error => error.message,
    })
  );
};

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.2.0 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.60 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-10.0.4 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-11.1.0 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-10.0.3 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-11.0.3 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.59 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-11.0.2 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-11.0.1 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-11.0.0 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.58 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-10.0.2 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.57 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-10.0.1 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.56 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.55 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.54 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.53 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-9.0.52 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js
foreman_rh_cloud-8.0.52 webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettingsActions.js