Sha256: 257e5e4e4cbd65ed8b6c9be0b5a99989961b9d76dd1462838dd68928da02129e

Contents?: true

Size: 1.02 KB

Versions: 42

Compression:

Stored size: 1.02 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

42 entries across 42 versions & 1 rubygems

Version Path
katello-4.10.0 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.9.2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.10.0.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.10.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.4 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.9.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.9.0 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.7.6 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.9.0.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.9.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.7.5 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.0 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.0.rc2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.7.4 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.8.0.rc1 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.7.3 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
katello-4.7.2 webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js