Sha256: 06ad61e9d851772ab45d6ac3f5e6fadba814a1fdde27f6f0af1b97b04a719c78

Contents?: true

Size: 1.29 KB

Versions: 9

Compression:

Stored size: 1.29 KB

Contents

import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';

import './ApplicationDefinition.scss';
import ApplicationDefinition from './ApplicationDefinition';
import * as ApplicationDefinitionActions from './ApplicationDefinitionActions';

import {
  selectShowAlertModal,
  selectAlertModalText,
  selectAlertModalTitle,
  selectEditMode,
  selectAnsiblePlaybook,
  selectServices,
  selectColumns,
  selectHiddenForemanParameterTypes,
  selectParametersData,
  selectAnsibleVarsAll,
  selectParamEditMode,
} from './ApplicationDefinitionSelectors';

const mapStateToProps = state => ({
  showAlertModal: selectShowAlertModal(state),
  alertModalText: selectAlertModalText(state),
  alertModalTitle: selectAlertModalTitle(state),
  editMode: selectEditMode(state),
  ansiblePlaybook: selectAnsiblePlaybook(state),
  services: selectServices(state),
  columns: selectColumns(state),
  hiddenForemanParameterTypes: selectHiddenForemanParameterTypes(state),
  parametersData: selectParametersData(state),
  ansibleVarsAll: selectAnsibleVarsAll(state),
  paramEditMode: selectParamEditMode(state),
});

const mapDispatchToProps = dispatch =>
  bindActionCreators(ApplicationDefinitionActions, dispatch);

export default connect(
  mapStateToProps,
  mapDispatchToProps
)(ApplicationDefinition);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_acd-0.9.7 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.5 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.4 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.3 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.2.3 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.2.2 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.2.1 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.2 webpack/components/ApplicationDefinition/index.js
foreman_acd-0.9.1 webpack/components/ApplicationDefinition/index.js