webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js in katello-3.18.1.1 vs webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js in katello-3.18.2
- old
+ new
@@ -49,12 +49,15 @@
};
showDeleteManifestModal = () =>
this.props.setModalOpen({ id: DELETE_MANIFEST_MODAL_ID });
- hideDeleteManifestModal = () =>
- this.props.setModalClosed({ id: DELETE_MANIFEST_MODAL_ID });
+ hideDeleteManifestModal = () => {
+ if (this.props.deleteManifestModalExists) {
+ this.props.setModalClosed({ id: DELETE_MANIFEST_MODAL_ID });
+ }
+ };
updateRepositoryUrl = (event) => {
this.setState({ redhat_repository_url: event.target.value });
};
@@ -324,10 +327,11 @@
}),
}).isRequired,
canImportManifest: PropTypes.bool,
canDeleteManifest: PropTypes.bool,
isManifestImported: PropTypes.bool,
+ deleteManifestModalExists: PropTypes.bool,
canEditOrganizations: PropTypes.bool,
disableManifestActions: PropTypes.bool,
disabledReason: PropTypes.string,
loadOrganization: PropTypes.func.isRequired,
saveOrganization: PropTypes.func.isRequired,
@@ -349,9 +353,10 @@
disableManifestActions: false,
disabledReason: '',
canImportManifest: false,
canDeleteManifest: false,
isManifestImported: false,
+ deleteManifestModalExists: false,
canEditOrganizations: false,
simpleContentAccess: false,
simpleContentAccessEligible: undefined,
manifestActionStarted: false,
};