Skip to content

Commit 0392f09

Browse files
committed
Address review comments
1 parent a2c79b4 commit 0392f09

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

portals/admin/src/main/webapp/source/src/app/components/ApplicationSettings/UpgradeToJWTDialog.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ const UpgradeToJWTDialog = (props) => {
8888
})}
8989
</Button>
9090

91-
<Dialog open={open} onClose={handleClose}>
91+
<Dialog
92+
open={open}
93+
onClose={(_, reason) => {
94+
if (submitting && (reason === 'backdropClick' || reason === 'escapeKeyDown')) {
95+
return;
96+
}
97+
handleClose();
98+
}}
99+
disableEscapeKeyDown={submitting}
100+
>
92101
<DialogTitle>
93102
{intl.formatMessage({
94103
id: 'ApplicationSettings.UpgradeToJWTDialog.dialog.title',

0 commit comments

Comments
 (0)