Skip to content

Commit 07a99f0

Browse files
authored
fix(dashboard): registry access tokens usability (#7004)
1 parent b65576f commit 07a99f0

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/fuzzy-kiwis-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'hive': patch
3+
---
4+
5+
Improve usability when creating a registry access token.

packages/web/app/src/components/target/settings/cdn-access-tokens.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ function CreateCDNAccessTokenModal(props: {
9898
onBlur={form.handleBlur}
9999
disabled={form.isSubmitting}
100100
isInvalid={form.touched.alias && !!form.errors.alias}
101+
onKeyPress={ev => {
102+
if (ev.key === 'Enter') {
103+
ev.preventDefault();
104+
form.handleSubmit();
105+
}
106+
}}
101107
/>
102108
{form.touched.alias && form.errors.alias ? (
103109
<span className="text-sm text-red-500">{form.errors.alias}</span>

0 commit comments

Comments
 (0)