Sha256: 2056cd0a252067792d99a796eb8976e6a78779784a5f372c401008207468322a

Contents?: true

Size: 628 Bytes

Versions: 12

Compression:

Stored size: 628 Bytes

Contents

import React from 'react';
import { Button } from 'patternfly-react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { noop } from 'foremanReact/common/helpers';

export const ResumeButton = ({ id, name, disabled, onClick }) => (
  <Button bsSize="small" onClick={() => onClick(id, name)} disabled={disabled}>
    {__('Resume')}
  </Button>
);

ResumeButton.propTypes = {
  id: PropTypes.string.isRequired,
  name: PropTypes.string.isRequired,
  onClick: PropTypes.func,
  disabled: PropTypes.bool,
};

ResumeButton.defaultProps = {
  disabled: false,
  onClick: noop,
};

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman-tasks-1.1.3 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-1.1.2 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-1.1.1 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-1.1.0 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-1.0.1 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js
foreman-tasks-0.17.1 webpack/ForemanTasks/Components/common/ActionButtons/ResumeButton.js