Sha256: 71536e3f5da40cea26f569c1aa2b38cdfde3e45333dbbf52f74780c58a0f173c
Contents?: true
Size: 1.91 KB
Versions: 4
Compression:
Stored size: 1.91 KB
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as foremanModalActions from 'foremanReact/components/ForemanModal/ForemanModalActions'; import * as manifestActions from './ManifestActions'; import * as organizationActions from '../../Organizations/OrganizationActions'; import * as contentCredentialActions from '../../ContentCredentials/ContentCredentialActions'; import * as tasksActions from '../../Tasks/TaskActions'; import history from './ManifestHistoryReducer'; import { selectSimpleContentAccessEnabled, selectIsManifestImported, selectUpdatingCdnConfiguration, } from '../../Organizations/OrganizationSelectors'; import { selectManifestActionStarted, selectSimpleContentAccessEligible } from '../SubscriptionsSelectors'; import { selectContentCredentials } from '../../ContentCredentials/ContentCredentialSelectors'; import ManifestModal from './ManageManifestModal'; // map state to props const mapStateToProps = state => ({ organization: state.katello.organization, manifestHistory: state.katello.manifestHistory, simpleContentAccess: selectSimpleContentAccessEnabled(state), isManifestImported: selectIsManifestImported(state), deleteManifestModalExists: !!state.foremanModals.deleteManifestModal, manifestActionStarted: selectManifestActionStarted(state), simpleContentAccessEligible: selectSimpleContentAccessEligible(state), updatingCdnConfiguration: selectUpdatingCdnConfiguration(state), contentCredentials: selectContentCredentials(state), }); // map action dispatchers to props const actions = { ...manifestActions, ...organizationActions, ...tasksActions, ...foremanModalActions, ...contentCredentialActions, }; const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const manifestHistory = history; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(ManifestModal);
Version data entries
4 entries across 4 versions & 1 rubygems