@@ -23,6 +23,7 @@ import {
23
23
htmlIdGenerator ,
24
24
EuiLink ,
25
25
keys ,
26
+ EuiCallOut ,
26
27
} from '@elastic/eui'
27
28
import { capitalize , isEmpty , pick } from 'lodash'
28
29
import ReactDOM from 'react-dom'
@@ -556,16 +557,6 @@ const AddStandaloneForm = (props: Props) => {
556
557
</ EuiToolTip >
557
558
)
558
559
559
- const AppendDbIndex = ( ) => (
560
- < EuiToolTip
561
- anchorClassName = "inputAppendIcon"
562
- position = "right"
563
- content = "Select the Redis logical database to work with in Browser and Workbench."
564
- >
565
- < EuiIcon type = "iInCircle" style = { { cursor : 'pointer' } } />
566
- </ EuiToolTip >
567
- )
568
-
569
560
const AppendEndpoints = ( ) => (
570
561
< EuiToolTip
571
562
title = "Host:port"
@@ -731,18 +722,27 @@ const AddStandaloneForm = (props: Props) => {
731
722
< EuiFlexGroup
732
723
className = { flexGroupClassName }
733
724
>
725
+ < EuiFlexItem className = { flexItemClassName } >
726
+ < EuiCallOut >
727
+ < EuiText size = "s" data-testid = "db-index-message" >
728
+ When the database is added, you can select logical databases only in CLI.
729
+ To work with other logical databases in Browser and Workbench, add another database with the same host and port,
730
+ but a different database index.
731
+ </ EuiText >
732
+ </ EuiCallOut >
733
+ </ EuiFlexItem >
734
734
< EuiFlexItem className = { cx (
735
735
flexItemClassName ,
736
736
styles . dbInput ,
737
737
{ [ styles . dbInputBig ] : ! flexItemClassName }
738
738
) }
739
739
>
740
- < EuiFormRow label = "Database Index " helpText = "Should not exceed 15." >
740
+ < EuiFormRow label = "Select the Redis logical database " helpText = "Should not exceed 15." >
741
741
< EuiFieldNumber
742
742
name = "db"
743
743
id = "db"
744
744
data-testid = "db"
745
- style = { { width : '100%' } }
745
+ style = { { width : 120 } }
746
746
placeholder = "Enter Database Index"
747
747
value = { formik . values . db ?? '0' }
748
748
maxLength = { 6 }
@@ -755,7 +755,6 @@ const AddStandaloneForm = (props: Props) => {
755
755
type = "text"
756
756
min = { 0 }
757
757
max = { MAX_DATABASE_INDEX_NUMBER }
758
- append = { < AppendDbIndex /> }
759
758
/>
760
759
</ EuiFormRow >
761
760
</ EuiFlexItem >
0 commit comments