Sha256: 8e391579118b17f5e755adf6cf6c2b5e8bf9786a2e1068d47ac0b663a90b7376

Contents?: true

Size: 797 Bytes

Versions: 6

Compression:

Stored size: 797 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
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

6 entries across 6 versions & 1 rubygems

Version Path
katello-3.12.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.12.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.12.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.12.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.12.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js
katello-3.12.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UnsavedChangesDialog.js