Sha256: 41b3175d973b53cb9a8f7ada00bac1032083e7ead6a8a98d7ba2d5810d097a86
Contents?: true
Size: 931 Bytes
Versions: 52
Compression:
Stored size: 931 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); const defaultStatusFilter = {}; export const selectStatusFilter = state => state.foremanRemoteExecutionReducers.jobInvocations .jobInvocationStateFilter || defaultStatusFilter;
Version data entries
52 entries across 52 versions & 1 rubygems