webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js in katello-3.15.0.rc1.3 vs webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js in katello-3.15.0.rc2

- old
+ new

@@ -1,34 +1,23 @@ import React from 'react'; import PropTypes from 'prop-types'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import { MessageDialog } from 'patternfly-react'; import { buildPools } from '../../SubscriptionsTableHelpers'; -import { renderTaskStartedToast } from '../../../../../Tasks/helpers'; -import { BLOCKING_FOREMAN_TASK_TYPES } from '../../../../SubscriptionConstants'; const UpdateDialog = ({ show, updatedQuantity, updateQuantity, showUpdateConfirm, - bulkSearch, - organization, - task, enableEditing, }) => { const quantityLength = Object.keys(updatedQuantity).length; const confirmEdit = async () => { showUpdateConfirm(false); if (quantityLength > 0) { await updateQuantity(buildPools(updatedQuantity)); - await bulkSearch({ - action: `organization '${organization.owner_details.displayName}'`, - result: 'pending', - label: BLOCKING_FOREMAN_TASK_TYPES.join(' or '), - }); - renderTaskStartedToast(task); } enableEditing(false); }; return ( @@ -58,23 +47,9 @@ UpdateDialog.propTypes = { show: PropTypes.bool.isRequired, updateQuantity: PropTypes.func.isRequired, updatedQuantity: PropTypes.shape(PropTypes.Object).isRequired, showUpdateConfirm: PropTypes.func.isRequired, - bulkSearch: PropTypes.func, - organization: PropTypes.shape({ - owner_details: PropTypes.shape({ - displayName: PropTypes.string, - }), - }), - task: PropTypes.shape({}), enableEditing: PropTypes.func.isRequired, }; - -UpdateDialog.defaultProps = { - task: { humanized: {} }, - bulkSearch: undefined, - organization: undefined, -}; - export default UpdateDialog;