File tree Expand file tree Collapse file tree 6 files changed +13
-13
lines changed
redisinsight/ui/src/pages/browser
components/add-key/constants
modules/key-details/components/rejson-details Expand file tree Collapse file tree 6 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export const AddListFormConfig: IAddListFormConfig = {
108
108
name : 'count' ,
109
109
isRequire : true ,
110
110
label : 'Count' ,
111
- placeholder : 'Enter Count'
111
+ placeholder : 'Enter Count* '
112
112
}
113
113
}
114
114
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ const RejsonDetailsWrapper = (props: Props) => {
106
106
data = { data as IJSONData }
107
107
length = { length }
108
108
parentPath = { path }
109
- expadedRows = { expandedRows }
109
+ expandedRows = { expandedRows }
110
110
onJsonKeyExpandAndCollapse = { handleJsonKeyExpandAndCollapse }
111
111
isDownloaded = { downloaded }
112
112
/>
Original file line number Diff line number Diff line change @@ -43,14 +43,14 @@ export interface BaseProps {
43
43
selectedKey : RedisResponseBuffer
44
44
isDownloaded : boolean
45
45
onJsonKeyExpandAndCollapse : ( isExpanded : boolean , path : string ) => void
46
- expadedRows : Set < string >
46
+ expandedRows : Set < string >
47
47
}
48
48
49
49
export interface DynamicTypesProps {
50
50
data : IJSONData
51
51
parentPath ?: string
52
52
leftPadding ?: number
53
- expadedRows : Set < string >
53
+ expandedRows : Set < string >
54
54
selectedKey : RedisResponseBuffer
55
55
isDownloaded : boolean
56
56
onClickRemoveKey : ( path : string , keyName : string ) => void
@@ -80,7 +80,7 @@ export interface JSONScalarProps extends JSONCommonProps {
80
80
export interface JSONObjectProps extends JSONCommonProps {
81
81
type : ObjectTypes
82
82
isDownloaded : boolean
83
- expadedRows : Set < string >
83
+ expandedRows : Set < string >
84
84
onJsonKeyExpandAndCollapse : ( isExpanded : boolean , path : string ) => void
85
85
onClickRemoveKey : ( path : string , keyName : string ) => void
86
86
handleSubmitUpdateValue ?: ( body : UpdateValueBody ) => void
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const RejsonDetails = (props: BaseProps) => {
25
25
parentPath,
26
26
isDownloaded,
27
27
onJsonKeyExpandAndCollapse,
28
- expadedRows
28
+ expandedRows
29
29
} = props
30
30
31
31
const [ addRootKVPair , setAddRootKVPair ] = useState < boolean > ( false )
@@ -80,7 +80,7 @@ const RejsonDetails = (props: BaseProps) => {
80
80
parentPath = { parentPath }
81
81
selectedKey = { selectedKey }
82
82
isDownloaded = { isDownloaded }
83
- expadedRows = { expadedRows }
83
+ expandedRows = { expandedRows }
84
84
onClickRemoveKey = { onClickRemoveKey }
85
85
onJsonKeyExpandAndCollapse = { onJsonKeyExpandAndCollapse }
86
86
handleAppendRejsonObjectItemAction = { handleAppendRejsonArrayItemAction }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
14
14
selectedKey,
15
15
parentPath = '' ,
16
16
isDownloaded,
17
- expadedRows ,
17
+ expandedRows ,
18
18
leftPadding = 0 ,
19
19
onClickRemoveKey,
20
20
onJsonKeyExpandAndCollapse,
@@ -42,7 +42,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
42
42
43
43
const renderJSONObject = ( data : any , type : string ) => (
44
44
< RejsonObject
45
- expadedRows = { expadedRows }
45
+ expandedRows = { expandedRows }
46
46
type = { type as ObjectTypes }
47
47
isDownloaded = { isDownloaded }
48
48
leftPadding = { nextLeftPadding }
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const RejsonObject = (props: JSONObjectProps) => {
18
18
parentPath,
19
19
keyName,
20
20
isDownloaded,
21
- expadedRows ,
21
+ expandedRows ,
22
22
leftPadding,
23
23
selectedKey,
24
24
cardinality = 0 ,
@@ -43,14 +43,14 @@ const RejsonObject = (props: JSONObjectProps) => {
43
43
const [ isExpanded , setIsExpanded ] = useState < boolean > ( false )
44
44
45
45
useEffect ( ( ) => {
46
- if ( ! expadedRows ?. has ( path ) ) {
46
+ if ( ! expandedRows ?. has ( path ) ) {
47
47
setValue ( defaultValue )
48
48
return
49
49
}
50
50
51
51
if ( isDownloaded ) {
52
52
setValue ( currentValue )
53
- setIsExpanded ( expadedRows ?. has ( path ) )
53
+ setIsExpanded ( expandedRows ?. has ( path ) )
54
54
return
55
55
}
56
56
@@ -173,7 +173,7 @@ const RejsonObject = (props: JSONObjectProps) => {
173
173
/>
174
174
) : (
175
175
< RejsonDynamicTypes
176
- expadedRows = { expadedRows }
176
+ expandedRows = { expandedRows }
177
177
leftPadding = { leftPadding }
178
178
data = { value }
179
179
parentPath = { path }
You can’t perform that action at this time.
0 commit comments