Sha256: 2d6352e2395e91c0f451fbbfa4e216b8cfe47316722540181dacd387a53b1dc6

Contents?: true

Size: 1.03 KB

Versions: 96

Compression:

Stored size: 1.03 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Spinner, OverlayTrigger, Tooltip } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';

const EnabledRepositoryContent = ({ loading, disableTooltipId, disableRepository }) => (
  <Spinner loading={loading} inline>
    <OverlayTrigger
      overlay={<Tooltip id={disableTooltipId}>{__('Disable')}</Tooltip>}
      placement="bottom"
      trigger={['hover', 'focus']}
      rootClose={false}
    >
      <button
        onClick={disableRepository}
        style={{
            backgroundColor: 'initial',
            border: 'none',
            color: '#0388ce',
          }}
      >
        <i className={cx('fa-2x', 'fa fa-minus-circle')} />
      </button>
    </OverlayTrigger>
  </Spinner>
);

EnabledRepositoryContent.propTypes = {
  loading: PropTypes.bool.isRequired,
  disableTooltipId: PropTypes.string.isRequired,
  disableRepository: PropTypes.func.isRequired,
};

export default EnabledRepositoryContent;

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
katello-4.3.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.4.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0.rc4 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0.rc3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0.rc2.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.3.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.0.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.1.4 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.0.3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.0.1.rc3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-3.18.5 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.0.1.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.0.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.1.3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.2.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.0.2.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js