Sha256: cf0f97736d90887f2e8f675f8649ccf50b45ed9fc3f1051b91a601592a5d3557

Contents?: true

Size: 1010 Bytes

Versions: 60

Compression:

Stored size: 1010 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { noop } from 'foremanReact/common/helpers';

import { FormGroup, Checkbox } from '@patternfly/react-core';
import LabelIcon from 'foremanReact/components/common/LabelIcon';
import { translate as __ } from 'foremanReact/common/I18n';

const IgnoreSubmanErrors = ({ value, onChange, isLoading }) => (
  <FormGroup fieldId="reg_katello_ignore">
    <Checkbox
      label={
        <span>
          {__('Ignore errors')}{' '}
          <LabelIcon text={__('Ignore subscription manager errors')} />
        </span>
      }
      id="reg_katello_ignore"
      onChange={() => onChange({ ignoreSubmanErrors: !value })}
      isDisabled={isLoading}
      isChecked={value}
    />
  </FormGroup>
);

IgnoreSubmanErrors.propTypes = {
  value: PropTypes.bool,
  onChange: PropTypes.func,
  isLoading: PropTypes.bool,
};

IgnoreSubmanErrors.defaultProps = {
  value: false,
  onChange: noop,
  isLoading: false,
};

export default IgnoreSubmanErrors;

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
katello-4.8.4 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.3 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.6 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.5 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.0 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.0.rc2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.4 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.8.0.rc1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.3 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.6.2.1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.6.2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.0 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.6.1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.0.rc2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.7.0.rc1 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js
katello-4.4.2.2 webpack/components/extensions/RegistrationCommands/fields/IgnoreSubmanErrors.js