Sha256: 6bce13e8ef8030d16e63b4b18cfb075ff002bdfaf586f7e19a85b469f7290f84
Contents?: true
Size: 750 Bytes
Versions: 5
Compression:
Stored size: 750 Bytes
Contents
import { selectAPIStatus, selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { selectDoesIntervalExist } from 'foremanReact/redux/middlewares/IntervalMiddleware/IntervalSelectors'; import { INVOCATIONS } from './InvocationsConstants'; export const selectItems = state => selectAPIResponse(state, INVOCATIONS).results || []; export const selectTotal = state => selectAPIResponse(state, INVOCATIONS).total || 0; export const selectAutoRefresh = state => selectItems(state).some(item => (item.status === 'pending' || item.status === 'planned')); export const selectStatus = state => selectAPIStatus(state, INVOCATIONS); export const selectIntervalExists = state => selectDoesIntervalExist(state, INVOCATIONS);
Version data entries
5 entries across 5 versions & 1 rubygems