File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed
pages/home/components/database-list-component Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,6 @@ const InstancesList = ({
37
37
const instances = selectedTab === InstancesTabs . Databases ? filteredDbInstances : filteredRdiInstances
38
38
39
39
const connectToInstance = ( id = '' ) => {
40
- dispatch ( resetKeys ( ) )
41
- dispatch ( resetRedisearchKeysData ( ) )
42
- dispatch ( resetCliSettingsAction ( ) )
43
- dispatch ( resetCliHelperSettings ( ) )
44
- dispatch ( setAppContextInitialState ( ) )
45
-
46
40
dispatch ( setConnectedInstanceId ( id ) )
47
41
setLoading ( false )
48
42
history . push ( Pages . browser ( id ) )
@@ -110,7 +104,12 @@ const InstancesList = ({
110
104
key = { instance . id }
111
105
label = { (
112
106
< EuiText style = { { display : 'flex' , alignItems : 'center' } } >
113
- { loading && instance ?. id === selected && < EuiLoadingSpinner size = "s" style = { { marginRight : '8px' } } /> }
107
+ { loading && instance ?. id === selected && (
108
+ < EuiLoadingSpinner
109
+ size = "s"
110
+ className = { styles . loading }
111
+ />
112
+ ) }
114
113
{ instance . name }
115
114
{ ' ' }
116
115
{ getDbIndex ( instance . db ) }
Original file line number Diff line number Diff line change 70
70
line-height : 16.8px !important ;
71
71
color : var (--euiTextSubduedColor ) !important ;
72
72
}
73
+
74
+ .loading {
75
+ margin-right : 8px ;
76
+ border-color : var (--separatorDropdownColor ) !important ;
77
+
78
+ border-top-color : var (--euiColorGhost ) !important ;
79
+ }
73
80
}
74
81
75
82
.listContainer :global(.euiListGroupItem-isActive ), :global(.euiListGroupItem :hover ) {
Original file line number Diff line number Diff line change @@ -135,16 +135,6 @@ const DatabasesListWrapper = (props: Props) => {
135
135
}
136
136
137
137
const connectToInstance = ( id = '' ) => {
138
- // reset rdi context
139
- dispatch ( resetRdiContext ( ) )
140
-
141
- if ( contextInstanceId && contextInstanceId !== id ) {
142
- dispatch ( resetKeys ( ) )
143
- dispatch ( resetRedisearchKeysData ( ) )
144
- dispatch ( resetCliSettingsAction ( ) )
145
- dispatch ( resetCliHelperSettings ( ) )
146
- dispatch ( setAppContextInitialState ( ) )
147
- }
148
138
dispatch ( setConnectedInstanceId ( id ) )
149
139
150
140
history . push ( Pages . browser ( id ) )
You can’t perform that action at this time.
0 commit comments