Sha256: 87476cdfbedf1ffe8d3bacd94798a00108160763f197a61811adbcddd63282f0

Contents?: true

Size: 916 Bytes

Versions: 12

Compression:

Stored size: 916 Bytes

Contents

import React from 'react';
import { useDispatch } from 'react-redux';
import { push } from 'connected-react-router';

import ImportRolesAndVariablesTable from './AnsibleRolesAndVariables';
import { onSubmit } from './AnsibleRolesAndVariablesActions';
import { ANSIBLE_ROLES_INDEX } from './AnsibleRolesAndVariablesConstants';

const WrappedImportRolesAndVariables = props => {
  const cols = [
    { title: 'Name' },
    { title: 'Operation' },
    { title: 'Variables' },
    { title: 'Hosts Count' },
    { title: 'Hostgroups count' },
  ];
  const dispatch = useDispatch();
  const submit = (rows, proxy) => dispatch(onSubmit(rows, proxy));
  const onCancel = () => {
    dispatch(push(ANSIBLE_ROLES_INDEX));
  };
  return (
    <ImportRolesAndVariablesTable
      {...props}
      columnsData={cols}
      onSubmit={submit}
      onCancel={onCancel}
    />
  );
};
export default WrappedImportRolesAndVariables;

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman_ansible-7.0.4 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-7.0.3 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-7.0.2 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-7.0.1 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-7.0.0 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.3.4 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.3.3 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.3.2 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.3.1 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.4.1 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.4.0 webpack/components/AnsibleRolesAndVariables/index.js
foreman_ansible-6.3.0 webpack/components/AnsibleRolesAndVariables/index.js