Skip to content

Commit 5c0f76b

Browse files
#RI2475, #2479, #2485, #2489 - fix settings page, redis cancel edit button, logo tooltip
1 parent 0b5e7d7 commit 5c0f76b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

redisinsight/ui/src/components/main-router/constants/redisStackRoutes.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PageNames, Pages, IRoute } from 'uiSrc/constants'
22
import {
3-
BrowserPage, InstancePage, SettingsPage,
3+
BrowserPage, InstancePage,
44
} from 'uiSrc/pages'
55
import WorkbenchPage from 'uiSrc/pages/workbench'
66
import EditConnection from 'uiSrc/pages/redisStack/components/edit-connection'
@@ -28,10 +28,6 @@ const ROUTES: IRoute[] = [
2828
component: EditConnection,
2929
},
3030
...COMMON_ROUTES,
31-
{
32-
path: Pages.settings,
33-
component: SettingsPage,
34-
},
3531
{
3632
path: '/:instanceId',
3733
protected: true,

redisinsight/ui/src/components/navigation-menu/NavigationMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const NavigationMenu = ({ buildType }: IProps) => {
233233
<EuiPageSideBar aria-label="Main navigation" className={cx(styles.navigation, 'eui-yScroll')}>
234234
<div className={styles.container}>
235235
<EuiToolTip
236-
content={buildType === BuildType.RedisStack ? 'Redis Stack' : 'My Redis databases'}
236+
content={buildType === BuildType.RedisStack ? 'Edit database' : 'My Redis databases'}
237237
position="right"
238238
>
239239
<span className={styles.iconLogo}>

redisinsight/ui/src/pages/redisStack/components/edit-connection/EditConnection.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ const EditConnection = () => {
4949
}
5050
}, [])
5151

52+
const onClose = () => history.goBack()
53+
5254
const getInstanceInfo = async () => {
5355
try {
5456
setState(DEFAULT_STATE)
@@ -68,7 +70,7 @@ const EditConnection = () => {
6870
const onInstanceChanged = () => {
6971
if (server?.fixedDatabaseId) {
7072
dispatch(setConnectedInstanceId(server.fixedDatabaseId))
71-
history.push(Pages.browser(server?.fixedDatabaseId))
73+
history.goBack()
7274
}
7375
}
7476

@@ -78,6 +80,7 @@ const EditConnection = () => {
7880

7981
const CreateCloudBtn = ({ content }: { content: ContentCreateRedis }) => {
8082
const { title, description, styles, links } = content
83+
8184
// @ts-ignore
8285
const linkStyles = styles ? styles[theme] : {}
8386
return (
@@ -123,6 +126,7 @@ const EditConnection = () => {
123126
onDbAdded={() => {}}
124127
onDbEdited={onInstanceChanged}
125128
onAliasEdited={onAliasChanged}
129+
onClose={onClose}
126130
/>
127131
</div>
128132
<div id="footerDatabaseForm" />

0 commit comments

Comments
 (0)