Sha256: 4555c8d65257a852331990d3814a46a9ea5db1f4fbdbb1ddf9bef4f05dcae577

Contents?: true

Size: 1.46 KB

Versions: 28

Compression:

Stored size: 1.46 KB

Contents

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

const DeleteManifestModalText = ({ simpleContentAccess }) => (
  <React.Fragment>
    <p>{__('Are you sure you want to delete the manifest?')}</p>
    {simpleContentAccess && (
      <>
        <p>{__('Note: Deleting a subscription manifest is STRONGLY discouraged.')}</p>
        <p>{__('This action should only be taken for debugging purposes.')}</p>
      </>
    )}
    {!simpleContentAccess && (
      <>
        <p>
          {__(`Note: Deleting a subscription manifest is STRONGLY discouraged.
        Deleting a manifest will:`)}
        </p>
        <ul className="list-aligned">
          <li>{__('Delete all subscriptions that are attached to running hosts.')}</li>
          <li>{__('Delete all subscriptions attached to activation keys.')}</li>
          <li>{__('Disable Red Hat Insights.')}</li>
          <li>
            {__(`Require you to upload the subscription-manifest and re-attach
              subscriptions to hosts and activation keys.`)}
          </li>
        </ul>
        <p>
          {__(`This action should only be taken in extreme circumstances or
              for debugging purposes.`)}
        </p>
      </>
    )}
  </React.Fragment>
);

DeleteManifestModalText.propTypes = {
  simpleContentAccess: PropTypes.bool,
};

DeleteManifestModalText.defaultProps = {
  simpleContentAccess: false,
};

export default DeleteManifestModalText;

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
katello-4.14.3 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.2 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.15.0 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.15.0.rc2 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.0 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.13.1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.13.0 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.12.1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.12.0 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.12.0.rc3 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.12.0.rc2 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.12.0.rc1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js
katello-4.11.1 webpack/scenes/Subscriptions/Manifest/DeleteManifestModalText.js