Sha256: 3687b92d16963b412be7fe33c308518bf4723310b334f270b8525a15339bd6e9

Contents?: true

Size: 857 Bytes

Versions: 158

Compression:

Stored size: 857 Bytes

Contents

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

const UnsavedChangesDialog = ({
  show, cancelEdit, showCancelConfirm,
}) => (
  <MessageDialog
    show={show}
    title={__('Editing Entitlements')}
    secondaryContent={__('You have unsaved changes. Do you want to exit without saving your changes?')}
    primaryActionButtonContent={__('Exit')}
    primaryAction={cancelEdit}
    secondaryActionButtonContent={__('Cancel')}
    secondaryAction={() => showCancelConfirm(false)}
    onHide={() => showCancelConfirm(false)}
  />);

UnsavedChangesDialog.propTypes = {
  show: PropTypes.bool.isRequired,
  cancelEdit: PropTypes.func.isRequired,
  showCancelConfirm: PropTypes.func.isRequired,
};

export default UnsavedChangesDialog;

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
katello-4.3.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.4.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.4.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.4.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0.rc4 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0.rc3 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0.rc2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.3.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.0.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.1.4 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.0.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.0.1.rc3 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.18.5 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.0.1.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.2.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-4.1.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js