Sha256: b9a634ccb5065cb9a329e351f43a7b8bbd8c161327f0aeb0e1474e3798ba9245

Contents?: true

Size: 1.71 KB

Versions: 16

Compression:

Stored size: 1.71 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 {
  selectIsManifestImported,
  selectUpdatingCdnConfiguration,
} from '../../Organizations/OrganizationSelectors';
import { selectManifestActionStarted } 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,
  isManifestImported: selectIsManifestImported(state),
  deleteManifestModalExists: !!state.foremanModals.deleteManifestModal,
  manifestActionStarted: selectManifestActionStarted(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

16 entries across 16 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.0 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.13.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.13.0 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.12.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.12.0 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.12.0.rc3 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.12.0.rc2 webpack/scenes/Subscriptions/Manifest/index.js
katello-4.12.0.rc1 webpack/scenes/Subscriptions/Manifest/index.js