Sha256: edf366e559222a699605b1caf71254c0ee8f18e6936f45300f5ecbce97d0c97a

Contents?: true

Size: 1.47 KB

Versions: 23

Compression:

Stored size: 1.47 KB

Contents

import { bindActionCreators } from 'redux';

import { connect } from 'react-redux';
import * as foremanModalActions from 'foremanReact/components/ForemanModal/ForemanModalActions';
import { selectIsModalOpen } from 'foremanReact/components/ForemanModal/ForemanModalSelectors';
import { DELETE_MANIFEST_MODAL_ID } from './ManifestConstants';

import * as manifestActions from './ManifestActions';
import * as organizationActions from '../../Organizations/OrganizationActions';
import * as tasksActions from '../../Tasks/TaskActions';
import history from './ManifestHistoryReducer';
import { selectSimpleContentAccessEnabled } from '../../Organizations/OrganizationSelectors';

import ManifestModal from './ManageManifestModal';

import './Manifest.scss';

// map state to props
const mapStateToProps = state => ({
  organization: state.katello.organization,
  manifestHistory: state.katello.manifestHistory,
  simpleContentAccess: selectSimpleContentAccessEnabled(state),
  modalOpenState: state.foremanModals.ManageManifestModal,
  deleteManifestModalIsOpen: selectIsModalOpen(state, DELETE_MANIFEST_MODAL_ID),
});

// map action dispatchers to props
const actions = {
  ...manifestActions, ...organizationActions, ...tasksActions, ...foremanModalActions,
};
const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch);

// export reducers
export const manifestHistory = history;

// export connected component
export default connect(mapStateToProps, mapDispatchToProps)(ManifestModal);

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.1.2 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.1.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc5.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc5 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc4.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.15.3.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.15.3 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc4 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc3.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.15.2 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc3 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc2.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc2 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.15.1.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc1.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.15.1 webpack/scenes/Subscriptions/Manifest/index.js
katello-3.16.0.rc1 webpack/scenes/Subscriptions/Manifest/index.js