File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
redisinsight/ui/src/pages/home/components/AddInstanceForm/InstanceForm Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ const AddStandaloneForm = (props: Props) => {
262
262
if ( ! values . sshPort ) {
263
263
errs . sshPort = fieldDisplayNames . sshPort
264
264
}
265
+ if ( ! values . sshUsername ) {
266
+ errs . sshUsername = fieldDisplayNames . sshUsername
267
+ }
265
268
if ( values . sshPassType === SshPassType . PrivateKey && ! values . sshPrivateKey ) {
266
269
errs . sshPrivateKey = fieldDisplayNames . sshPrivateKey
267
270
}
Original file line number Diff line number Diff line change @@ -21,5 +21,6 @@ export const fieldDisplayNames = {
21
21
sentinelMasterName : 'Primary Group Name' ,
22
22
sshHost : 'SSH Host' ,
23
23
sshPort : 'SSH Port' ,
24
- sshPrivateKey : 'SSH Private Key'
24
+ sshPrivateKey : 'SSH Private Key' ,
25
+ sshUsername : 'SSH Username' ,
25
26
}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ const SSHDetails = (props: Props) => {
121
121
className = { flexGroupClassName }
122
122
>
123
123
< EuiFlexItem className = { cx ( flexItemClassName ) } >
124
- < EuiFormRow label = "Username" >
124
+ < EuiFormRow label = "Username* " >
125
125
< EuiFieldText
126
126
name = "sshUsername"
127
127
id = "sshUsername"
@@ -196,6 +196,7 @@ const SSHDetails = (props: Props) => {
196
196
value = { formik . values . sshPrivateKey ?? '' }
197
197
onChange = { formik . handleChange }
198
198
fullWidth
199
+ maxLength = { 50_000 }
199
200
placeholder = "Enter SSH Private Key"
200
201
data-testid = "sshPrivateKey"
201
202
/>
You can’t perform that action at this time.
0 commit comments