Skip to content

[Lookout UI] Submit dialogs on enter#4649

Merged
mauriceyap merged 2 commits intoarmadaproject:masterfrom
d2burkhalter:fix/reprioritize-on-enter
Feb 3, 2026
Merged

[Lookout UI] Submit dialogs on enter#4649
mauriceyap merged 2 commits intoarmadaproject:masterfrom
d2burkhalter:fix/reprioritize-on-enter

Conversation

@d2burkhalter
Copy link
Collaborator

What type of PR is this?

Lookout UI enhancement

What this PR does / why we need it

Allows users to press enter to submit dialogs for canceling and reprioritizing jobs.

Signed-off-by: David.Burkhalter <d2.burkhalter@gmail.com>
const selectedJobsCount = selectedJobs.length
return (
<Dialog open={true} onClose={onClose} fullWidth maxWidth="xl">
<Dialog open={true} onClose={onClose} fullWidth maxWidth="xl" onKeyDown={handleDialogKeyDown}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this instead be achieved by passing the props component="form" onSubmit={handleSubmit} to the <Dialog> here? If it does, the button below with type="submit" should hopefully take effect since it's inside this rendered <form> component and so we'd be able to remove handleDialogKeyDown.

@mauriceyap mauriceyap enabled auto-merge (squash) February 3, 2026 15:37
@mauriceyap mauriceyap merged commit 49a22a9 into armadaproject:master Feb 3, 2026
15 checks passed
dslear pushed a commit to dslear/armada that referenced this pull request Feb 9, 2026
#### What type of PR is this?
Lookout UI enhancement

#### What this PR does / why we need it
Allows users to press enter to submit dialogs for canceling and
reprioritizing jobs.

Signed-off-by: David.Burkhalter <d2.burkhalter@gmail.com>
@d2burkhalter d2burkhalter deleted the fix/reprioritize-on-enter branch February 26, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants