webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.13.4 vs webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.14.0.rc1

- old
+ new

@@ -48,13 +48,11 @@ (this.state.editing && rowData.available >= 0 && rowData.upstream_pool_id), hasChanged: ({ rowData }) => { const editedValue = this.state.updatedQuantity[rowData.id]; return this.hasQuantityChanged(rowData, editedValue); }, - onActivate: () => { - this.enableEditing(true); - }, + onActivate: () => this.enableEditing(true), onConfirm: () => { if (recordsValid(this.state.rows)) { this.showUpdateConfirm(true); } else { this.showErrorDialog(true); @@ -117,11 +115,11 @@ }); }; getTableProps = () => { const { - subscriptions, emptyState, tableColumns, loadSubscriptions, + subscriptions, emptyState, tableColumns, loadSubscriptions, canManageSubscriptionAllocations, } = this.props; const { groupedSubscriptions, rows, editing } = this.state; return { emptyState, @@ -129,10 +127,11 @@ groupedSubscriptions, loadSubscriptions, rows, subscriptions, tableColumns, + canManageSubscriptionAllocations, toggleSubscriptionGroup: this.toggleSubscriptionGroup, inlineEditController: this.getInlineEditController(), selectionController: this.getSelectionController(), }; }; @@ -287,10 +286,11 @@ SubscriptionsTable.propTypes = { tableColumns: PropTypes.arrayOf(PropTypes.string).isRequired, loadSubscriptions: PropTypes.func.isRequired, updateQuantity: PropTypes.func.isRequired, emptyState: PropTypes.shape({}).isRequired, + canManageSubscriptionAllocations: PropTypes.bool, subscriptions: PropTypes.shape({ loading: PropTypes.bool, availableQuantities: PropTypes.shape({}), results: PropTypes.array, }).isRequired, @@ -309,8 +309,9 @@ SubscriptionsTable.defaultProps = { task: { humanized: {} }, bulkSearch: undefined, organization: undefined, + canManageSubscriptionAllocations: false, }; export default SubscriptionsTable;