Sha256: 11341f92893f90028fe57c31f4b10fb045d00bb2d891ad7279f98860d6067a6a

Contents?: true

Size: 1.24 KB

Versions: 10

Compression:

Stored size: 1.24 KB

Contents

import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import TasksTablePage from './TasksTablePage';
import reducer from './TasksTableReducer';
import * as tableActions from './TasksTableActions';
import * as bulkActions from './TasksBulkActions';
import {
  selectStatus,
  selectError,
  selectResults,
  selectPagitation,
  selectItemCount,
  selectSort,
  selectActionName,
  selectSelectedRows,
  selectAllRowsSelected,
  selectShowSelectAll,
  selectModalID,
  selectPermissions,
} from './TasksTableSelectors';

const mapStateToProps = state => ({
  status: selectStatus(state),
  error: selectError(state),
  sort: selectSort(state),
  results: selectResults(state),
  pagination: selectPagitation(state),
  itemCount: selectItemCount(state),
  actionName: selectActionName(state),
  selectedRows: selectSelectedRows(state),
  allRowsSelected: selectAllRowsSelected(state),
  showSelectAll: selectShowSelectAll(state),
  modalID: selectModalID(state),
  permissions: selectPermissions(state),
});

const mapDispatchToProps = dispatch =>
  bindActionCreators({ ...tableActions, ...bulkActions }, dispatch);

export const reducers = { tasksTable: reducer };

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman-tasks-4.1.6 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.2.3 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.2.2 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.2.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.3.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.2.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.1.1 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-5.1.0 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.1.5 webpack/ForemanTasks/Components/TasksTable/index.js
foreman-tasks-4.1.4 webpack/ForemanTasks/Components/TasksTable/index.js