Sha256: 5dafd1b196328c15f0f2398ae223543e118ac50e085f2b6365f8a3299ce72b2c

Contents?: true

Size: 840 Bytes

Versions: 23

Compression:

Stored size: 840 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';

import { EmptyStatePattern as EmptyState } from 'foremanReact/components/common/EmptyState';
import { translate as __ } from 'foremanReact/common/I18n';

const NoReports = ({ reportsExpected }) => {
  let text;
  let icon;

  if (reportsExpected) {
    text = __(
      'The preupgrade report could not be generated, check the job details for the reason'
    );
    icon = 'warning-triangle-o';
  } else {
    text = __('The preupgrade report will be available after the job finishes');
    icon = 'in-progress';
  }

  return (
    <EmptyState
      iconType="pf"
      icon={icon}
      header={__('No Preupgrade Report Available')}
      description={text}
    />
  );
};

NoReports.propTypes = {
  reportsExpected: PropTypes.bool.isRequired,
};

export default NoReports;

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
foreman_leapp-2.0.1 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-2.0.0 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-1.2.1 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-1.2.0 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.15 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-1.1.1 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-1.1.0 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-1.0.0 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.14 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.13 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.12 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.11 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.10 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.9 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.8 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.7 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.6 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.5 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.4 webpack/components/PreupgradeReports/components/NoReports.js
foreman_leapp-0.1.3 webpack/components/PreupgradeReports/components/NoReports.js