Sha256: 9fdf482c940aee17eea796415a2aea5067b5756c9f10cfd552ba729cfb55bfcf
Contents?: true
Size: 944 Bytes
Versions: 30
Compression:
Stored size: 944 Bytes
Contents
import { selectAPIStatus, selectAPIError, selectAPIResponse, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; export const selectOrganization = (state, orgId) => selectAPIResponse(state, `ORGANIZATION_${orgId}`) ?? {}; export const selectOrganizationStatus = (state, orgId) => selectAPIStatus(state, `ORGANIZATION_${orgId}`) ?? STATUS.PENDING; export const selectOrganizationError = (state, orgId) => selectAPIError(state, `ORGANIZATION_${orgId}`); export const selectAvailableReleaseVersions = (state, hostId) => selectAPIResponse(state, `AVAILABLE_RELEASE_VERSIONS_${hostId}`) ?? {}; export const selectAvailableReleaseVersionsStatus = (state, hostId) => selectAPIStatus(state, `AVAILABLE_RELEASE_VERSIONS_${hostId}`) ?? STATUS.PENDING; export const selectAvailableReleaseVersionsError = (state, hostId) => selectAPIError(state, `AVAILABLE_RELEASE_VERSIONS_${hostId}`);
Version data entries
30 entries across 30 versions & 1 rubygems