Sha256: 29f7bf0d3660a8d892eb0e6e68607ce2fe72391682f993d433e49ffb336d005b
Contents?: true
Size: 1.66 KB
Versions: 36
Compression:
Stored size: 1.66 KB
Contents
import { selectAPIStatus, selectAPIResponse, selectAPIError, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import { CHANGE_CONTENT_SOURCE_DATA, CHANGE_CONTENT_SOURCE_PROXY, CHANGE_CONTENT_SOURCE, CHANGE_CONTENT_SOURCE_VIEWS } from './constants'; // API statuses export const selectApiDataStatus = state => selectAPIStatus(state, CHANGE_CONTENT_SOURCE_DATA); export const selectApiContentViewStatus = state => selectAPIStatus(state, CHANGE_CONTENT_SOURCE_VIEWS); export const selectApiChangeContentStatus = state => selectAPIStatus(state, CHANGE_CONTENT_SOURCE); export const selectError = state => selectAPIError(state, CHANGE_CONTENT_SOURCE); // Selectors export const selectContentHosts = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_DATA).content_hosts || []; export const selectContentHostsWithoutContent = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_DATA).hosts_without_content || []; export const selectEnvironments = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_PROXY).lifecycle_environments || []; export const selectContentSources = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_DATA).content_sources || []; export const selectJobInvocationPath = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_DATA).job_invocation_path; export const selectContentViews = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE_VIEWS).results || []; export const selectContentViewsStatus = state => selectAPIStatus(state, CHANGE_CONTENT_SOURCE_VIEWS) || STATUS.PENDING; export const selectTemplate = state => selectAPIResponse(state, CHANGE_CONTENT_SOURCE) || '';
Version data entries
36 entries across 36 versions & 1 rubygems