Skip to content

Commit

Permalink
EPMRPP-87572 || Fix Create edit integration modal (#3669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam6ycha authored Nov 23, 2023
1 parent 1f0fc5f commit 0a9f99c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const messages = defineMessages({
},
});

const AddIntegrationModal = ({ data, initialize, change, handleSubmit }) => {
const AddIntegrationModal = ({ data, initialize, change, handleSubmit, dirty }) => {
const [metaData, setMetaData] = useState({});
const fieldsExtensions = useSelector(uiExtensionIntegrationFormFieldsSelector);
const dispatch = useDispatch();
Expand Down Expand Up @@ -105,6 +105,7 @@ const AddIntegrationModal = ({ data, initialize, change, handleSubmit }) => {
okButton={okButton}
cancelButton={cancelButton}
onClose={() => dispatch(hideModalAction())}
allowCloseOutside={!dirty}
>
{data.hasWarningMessage && (
<SystemMessage
Expand Down Expand Up @@ -133,6 +134,7 @@ AddIntegrationModal.propTypes = {
initialize: PropTypes.func.isRequired,
change: PropTypes.func.isRequired,
handleSubmit: PropTypes.func.isRequired,
dirty: PropTypes.bool.isRequired,
};

export default withModal('addIntegrationModal')(
Expand Down

0 comments on commit 0a9f99c

Please sign in to comment.