Sha256: c62007844409c6c0d1305d349859ed2a8441fd21d3e509a8d6ac1eb1ceb5f487
Contents?: true
Size: 1.12 KB
Versions: 20
Compression:
Stored size: 1.12 KB
Contents
import { selectAPIStatus, } from 'foremanReact/redux/API/APISelectors'; import { STATUS } from 'foremanReact/constants'; import { UPDATE_CDN_CONFIGURATION_KEY, } from './OrganizationConstants'; export const selectOrganizationState = state => state.katello.organization; export const selectOrgLoading = state => state.katello.organization.loading; export const selectManifestName = state => selectOrganizationState(state).owner_details?.upstreamConsumer?.name; // for use in ManageManifestModal to replace getManifestName() export const selectManifestHref = state => selectManifestName(state) && [ 'https://', selectOrganizationState(state).owner_details.upstreamConsumer.webUrl, selectOrganizationState(state).owner_details.upstreamConsumer.uuid, ].join('/'); export const selectIsManifestImported = state => !!selectOrganizationState(state).owner_details?.upstreamConsumer?.webUrl; export const selectCdnConfigurationUpdateStatus = state => selectAPIStatus(state, UPDATE_CDN_CONFIGURATION_KEY); export const selectUpdatingCdnConfiguration = state => selectCdnConfigurationUpdateStatus(state) === STATUS.PENDING;
Version data entries
20 entries across 20 versions & 1 rubygems