Skip to content

Commit cbacef2

Browse files
authored
Merge pull request #4115 from RedisInsight/fe/bugfix/list-of-subscriptions
#RI-6342 - fix auto-discovery flow
2 parents b77534d + 097988c commit cbacef2

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,18 @@ const DatabasePanelDialog = (props: Props) => {
9898
() => {
9999
if (connectionType === AddDbType.manual) return
100100

101+
if (connectionType === AddDbType.cloud) {
102+
dispatch(resetDataRedisCluster())
103+
dispatch(resetDataSentinel())
104+
return
105+
}
106+
101107
switch (typeSelected) {
102108
case InstanceType.Sentinel: {
103109
dispatch(resetDataRedisCloud())
104110
dispatch(resetDataRedisCluster())
105111
break
106112
}
107-
case InstanceType.RedisCloudPro: {
108-
dispatch(resetDataRedisCluster())
109-
dispatch(resetDataSentinel())
110-
break
111-
}
112113
case InstanceType.RedisEnterpriseCluster: {
113114
dispatch(resetDataRedisCloud())
114115
dispatch(resetDataSentinel())

redisinsight/ui/src/pages/home/styles.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,25 @@
7070
border-radius: 4px;
7171
}
7272

73+
.footerAddDatabase {
74+
margin: 0;
75+
width: 100%;
76+
bottom: 0;
77+
float: right;
78+
text-align: right;
79+
vertical-align: bottom;
80+
padding: 15px 24px 0;
81+
border-radius: 0 0 4px 4px;
82+
83+
border-top: 1px solid var(--euiColorLightShade);
84+
85+
.btn-cancel,
86+
.btn-back {
87+
margin-right: 10px;
88+
min-width: 71px !important;
89+
}
90+
}
91+
7392
.clusterDatabaseList,
7493
.clusterDatabaseListResult,
7594
.cloudDatabaseList,

redisinsight/ui/src/pages/rdi/home/header/RdiHeader.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { EuiButton, EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui'
22
import React from 'react'
33
import { useSelector } from 'react-redux'
4-
import cx from 'classnames'
54

65
import { instancesSelector } from 'uiSrc/slices/rdi/instances'
76
import SearchRdiList from '../search/SearchRdiList'
@@ -18,8 +17,7 @@ const RdiHeader = ({ onRdiInstanceClick }: Props) => {
1817
<EuiFlexGroup className="contentDL" alignItems="center" responsive={false} gutterSize="s">
1918
<EuiFlexItem grow={false}>
2019
<EuiButton fill color="secondary" onClick={onRdiInstanceClick} data-testid="rdi-instance">
21-
<span className={cx('eui-showFor--s', 'eui-showFor--xs')}>+ RDI ENDPOINT</span>
22-
<span className={cx('eui-hideFor--s', 'eui-hideFor--xs')}>+ Add RDI Endpoint</span>
20+
<span>+ Endpoint</span>
2321
</EuiButton>
2422
</EuiFlexItem>
2523
{instances.length > 0 && (

0 commit comments

Comments
 (0)