Sha256: c9a4082359ce91e533a96e3698bb7ac52eb8d6ffdd6e765185838c4ffaab3513
Contents?: true
Size: 1.16 KB
Versions: 25
Compression:
Stored size: 1.16 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 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 selectSimpleContentAccessEnabled = state => selectOrganizationState(state).simple_content_access; export const selectCdnConfigurationUpdateStatus = state => selectAPIStatus(state, UPDATE_CDN_CONFIGURATION_KEY); export const selectUpdatingCdnConfiguration = state => selectCdnConfigurationUpdateStatus(state) === STATUS.PENDING;
Version data entries
25 entries across 25 versions & 1 rubygems