From a09035d35a2dc67acd0b240a9b7a32e7dd30de30 Mon Sep 17 00:00:00 2001 From: o0vO <157351579+o0vO@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:18:56 +0000 Subject: [PATCH] small feat: add database tips one user select 1 replicas --- .../dbprovider/src/pages/db/edit/components/Form.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/providers/dbprovider/src/pages/db/edit/components/Form.tsx b/frontend/providers/dbprovider/src/pages/db/edit/components/Form.tsx index 1ad36e1ab47..da841b46dca 100644 --- a/frontend/providers/dbprovider/src/pages/db/edit/components/Form.tsx +++ b/frontend/providers/dbprovider/src/pages/db/edit/components/Form.tsx @@ -33,7 +33,7 @@ import Tip from '@/components/Tip'; import QuotaBox from './QuotaBox'; import { obj2Query } from '@/api/tools'; import { throttle } from 'lodash'; -import { InfoOutlineIcon } from '@chakra-ui/icons'; +import { InfoOutlineIcon, WarningIcon } from '@chakra-ui/icons'; const Form = ({ formHook, @@ -332,6 +332,14 @@ const Form = ({ setValue('replicas', val || 1); }} /> + {getValues('replicas') === 1 && ( + } + text="The Single-node database is only suitable for development testing." + size="sm" + /> + )} {getValues('dbType') === DBTypeEnum.redis && getValues('replicas') > 1 && (