webpack/scenes/Organizations/OrganizationSelectors.js in katello-4.3.0.rc1 vs webpack/scenes/Organizations/OrganizationSelectors.js in katello-4.3.0.rc2

- old
+ new

@@ -1,5 +1,15 @@ +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; @@ -14,5 +24,11 @@ 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;