Sha256: 808ed32be450aa15ada6f8e0cdbfe6613a8507ed2cb1cd51a1eaa971e11dbecb

Contents?: true

Size: 1.31 KB

Versions: 9

Compression:

Stored size: 1.31 KB

Contents

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

import './ApplicationInstance.scss';
import ApplicationInstance from './ApplicationInstance';
import * as ApplicationInstanceActions from './ApplicationInstanceActions';

import {
  selectShowAlertModal,
  selectAlertModalText,
  selectAlertModalTitle,
  selectEditMode,
  selectAppDefinition,
  selectHosts,
  selectServices,
  selectColumns,
  selectHiddenForemanParameterTypes,
  selectParametersData,
  selectAnsibleVarsAll,
  selectParamEditMode,
} from './ApplicationInstanceSelectors';

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

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