Sha256: 84a3237268b1b4d6b296571b62ae02afb656b589c296d75b846ecbe5a54c6e03

Contents?: true

Size: 747 Bytes

Versions: 42

Compression:

Stored size: 747 Bytes

Contents

import {
  selectAPIStatus,
  selectAPIResponse,
} from 'foremanReact/redux/API/APISelectors';
import { selectDoesIntervalExist } from 'foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors';

import { TARGETING_HOSTS } from './TargetingHostsConsts';

export const selectItems = state =>
  selectAPIResponse(state, TARGETING_HOSTS).hosts || [];

export const selectAutoRefresh = state =>
  selectAPIResponse(state, TARGETING_HOSTS).autoRefresh || '';

export const selectApiStatus = state => selectAPIStatus(state, TARGETING_HOSTS);
export const selectTotalHosts = state =>
  selectAPIResponse(state, TARGETING_HOSTS).total_hosts || 0;

export const selectIntervalExists = state =>
  selectDoesIntervalExist(state, TARGETING_HOSTS);

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
foreman_remote_execution-8.1.2 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-8.1.1 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-8.1.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.2.2 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.2.1 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.2.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.8 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-8.0.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.1.1 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.1.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-7.0.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.7 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.6 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-6.2.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.5 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-6.1.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.4 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.3 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-6.0.0 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js
foreman_remote_execution-5.0.2 webpack/react_app/components/TargetingHosts/TargetingHostsSelectors.js