From f48011a98386f9851c72e1d3605e38c84981f59a Mon Sep 17 00:00:00 2001 From: xusongfu Date: Fri, 6 May 2022 10:25:30 +0800 Subject: [PATCH] fix: add i18n and fix datastore of trove 1. The trove creates an instance affinity and anti-affinity label that requires i18n 2. Add i18n for trove instance status 3. The value of the database version of the configuration group is incorrectly set 4. Add allowClear true for select component Change-Id: Ic6058530b57b1f8f7face48061c5a3b018459a5a --- src/components/FormItem/Select/index.jsx | 10 +++++++++- src/locales/en.json | 1 - src/locales/zh.json | 1 - .../containers/Configurations/actions/Create.jsx | 2 +- .../containers/Instances/Detail/BaseDetail.jsx | 3 +++ .../database/containers/Instances/Detail/index.jsx | 5 ++++- .../Instances/actions/StepCreate/StepDetails/index.jsx | 4 ++-- src/pages/database/containers/Instances/index.jsx | 2 +- .../containers/Network/actions/CreateNetwork.jsx | 2 -- .../containers/Network/actions/CreateSubnet.jsx | 2 -- src/resources/database.js | 2 ++ 11 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/components/FormItem/Select/index.jsx b/src/components/FormItem/Select/index.jsx index 58804478..df619f3c 100644 --- a/src/components/FormItem/Select/index.jsx +++ b/src/components/FormItem/Select/index.jsx @@ -61,11 +61,17 @@ export default class index extends Component { isWrappedValue, checkOptions, checkBoxInfo, + allowClear = true, ...rest } = this.props; if (isUndefined(value) || isNull(value)) { return ( - ); } if (checkOptions) { @@ -81,6 +87,7 @@ export default class index extends Component {