Skip to content

Commit

Permalink
fix: cancel session revoking when pressing escape on confirm dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Jan 22, 2021
1 parent 5f02540 commit d9576b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/assets/javascripts/directives/views/sessionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ const SessionsModal: FunctionComponent<{
</div>
</Dialog>
{confirmRevokingSessionUuid && (
<AlertDialog leastDestructiveRef={cancelRevokeRef}>
<AlertDialog
onDismiss={() => {
setRevokingSessionUuid('');
}}
leastDestructiveRef={cancelRevokeRef}
>
<div className="sk-modal-content">
<div className="sn-component">
<div className="sk-panel">
Expand Down

0 comments on commit d9576b4

Please sign in to comment.