webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.9.0 vs webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.9.1
- old
+ new
@@ -149,10 +149,11 @@
isCollapsed: ({ rowData }) => !groupedSubscriptions[rowData.product_id].open,
toggle: ({ rowData }) => this.toggleSubscriptionGroup(rowData.product_id),
};
const inlineEditController = {
- isEditing: ({ rowData }) => (this.state.editing && rowData.available >= 0),
+ isEditing: ({ rowData }) =>
+ (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: () => {