Sha256: 908d5dd4601f33045433a1f26ed3c858bdf9982c36513c3a5f712a2747740b4b

Contents?: true

Size: 1.17 KB

Versions: 70

Compression:

Stored size: 1.17 KB

Contents

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

import AnsibleRolesSwitcher from './AnsibleRolesSwitcher';
import * as AnsibleRolesSwitcherActions from './AnsibleRolesSwitcherActions';
import AnsiblePermissionDenied from './components/AnsiblePermissionDenied';
import withProtectedView from './components/withProtectedView';
import {
  selectUnassignedRoles,
  selectAssignedRoles,
  selectResults,
  selectPaginationMemoized,
  selectItemCount,
  selectLoading,
  selectError,
  selectToDestroyRoles,
} from './AnsibleRolesSwitcherSelectors';

const mapStateToProps = state => ({
  results: selectResults(state),
  pagination: selectPaginationMemoized(state),
  itemCount: selectItemCount(state),
  loading: selectLoading(state),
  error: selectError(state),
  assignedRoles: selectAssignedRoles(state),
  unassignedRoles: selectUnassignedRoles(state),
  toDestroyRoles: selectToDestroyRoles(state),
});

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

export default withProtectedView(
  connect(mapStateToProps, mapDispatchToProps)(AnsibleRolesSwitcher),
  AnsiblePermissionDenied,
  props => props.canView
);

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
foreman_ansible-15.0.6 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.2.3 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.5 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.4 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.3 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.2 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesSwitcher/index.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesSwitcher/index.js