Skip to content

Commit

Permalink
small feat: add database tips one user select 1 replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
o0vO committed Jan 24, 2024
1 parent 4ff45a8 commit a09035d
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -332,6 +332,14 @@ const Form = ({
setValue('replicas', val || 1);
}}
/>
{getValues('replicas') === 1 && (
<Tip
ml={4}
icon={<WarningIcon />}
text="The Single-node database is only suitable for development testing."
size="sm"
/>
)}
{getValues('dbType') === DBTypeEnum.redis && getValues('replicas') > 1 && (
<Tip
ml={4}
Expand Down

0 comments on commit a09035d

Please sign in to comment.