diff --git a/src/components/UISchema/index.tsx b/src/components/UISchema/index.tsx index b02144bb8..4cea9bd69 100644 --- a/src/components/UISchema/index.tsx +++ b/src/components/UISchema/index.tsx @@ -288,9 +288,6 @@ class UISchema extends Component { if (!uiSchema || enableCodeEdit) { return this.renderCodeEdit(); } - if (mode == 'edit' && value === undefined) { - return
; - } let onlyShowRequired = false; let couldShowParamCount = 0; uiSchema.map((param) => { @@ -359,7 +356,7 @@ class UISchema extends Component { if (initValue === undefined) { initValue = param.validate?.defaultValue; } - const disableEdit = (param.validate?.immutable && this.props.mode == 'edit') || false; + const disableEdit = (param.validate?.immutable && mode == 'edit') || false; const getGroup = (children: React.ReactNode) => { return ( { type: 'confirm', content: ( - If Switch is turned off, The configuration will be reset. Are you - sure you want to do this? + The configuration will be reset if the switch is turned off. Are you + sure want to do this? ), onOk: () => { diff --git a/src/locals/Zh/zh.json b/src/locals/Zh/zh.json index 35b4f66e3..35ffb9821 100644 --- a/src/locals/Zh/zh.json +++ b/src/locals/Zh/zh.json @@ -342,7 +342,7 @@ "Instructions for assessing whether the container is alive.": "容器健康状态探针", "Specify the annotations in the workload": "指定工作负载的注释", "Specify the labels in the workload": "指定工作负载的标签", - "If Switch is turned off, The configuration will be reset. Are you sure you want to do this?": "如果关闭,配置将重置。确定操作吗?", + "The configuration will be reset if the switch is turned off. Are you sure want to do this?": "如果关闭,配置将重置。确定操作吗?", "Mount PVC type volume": "挂载 PVC 数据卷", "Mount HostPath type volume": "挂载 HostPath 数据卷", "Mount EmptyDir type volume": "挂载 EmptyDir 数据卷",