Sha256: daf3ee1719fb2d2f5d6760332fefc8019fc091e9e37834043a5a9d1020c20f5a

Contents?: true

Size: 1016 Bytes

Versions: 49

Compression:

Stored size: 1016 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { foremanUrl } from '../../../../../../ForemanRhCloudHelpers';

const Toast = ({ syncHosts, disconnectHosts }) => {
  const totalHosts = syncHosts + disconnectHosts;
  return (
    <span>
      <p>
        {__('Hosts with subscription in organization: ')}
        <strong>{totalHosts}</strong>
      </p>
      <p>
        {__('Successfully synced hosts: ')}
        <strong>{syncHosts}</strong>
      </p>
      <p>
        {__('Disconnected hosts: ')}
        <strong>{disconnectHosts}</strong>
      </p>
      <p>
        For more info, please visit the{' '}
        <a
          href={foremanUrl('/hosts')}
          target="_blank"
          rel="noopener noreferrer"
        >
          hosts page
        </a>
      </p>
    </span>
  );
};

Toast.propTypes = {
  syncHosts: PropTypes.number.isRequired,
  disconnectHosts: PropTypes.number.isRequired,
};

export default Toast;

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
foreman_rh_cloud-3.0.33 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.32 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.29 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.28 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.26 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-4.0.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js
foreman_rh_cloud-2.0.18.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/SyncButton/components/Toast.js