Sha256: acd835b20d78b622e7a0bbde6595633e6f9f8a3e2c60978a020f284b72751c7f
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 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, selectAssignedRolesPage, selectAssignedRoles, selectAssignedRolesCount, selectResults, selectPaginationMemoized, selectItemCount, selectLoading, selectAssignedPagination, selectError, } from './AnsibleRolesSwitcherSelectors'; const mapStateToProps = state => ({ results: selectResults(state), pagination: selectPaginationMemoized(state), itemCount: selectItemCount(state), loading: selectLoading(state), error: selectError(state), assignedPagination: selectAssignedPagination(state), assignedRolesCount: selectAssignedRolesCount(state), assignedRoles: selectAssignedRolesPage(state), allAssignedRoles: selectAssignedRoles(state), unassignedRoles: selectUnassignedRoles(state), }); const mapDispatchToProps = dispatch => bindActionCreators(AnsibleRolesSwitcherActions, dispatch); export default withProtectedView( connect(mapStateToProps, mapDispatchToProps)(AnsibleRolesSwitcher), AnsiblePermissionDenied, props => props.canView );
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_ansible-6.2.0 | webpack/components/AnsibleRolesSwitcher/index.js |