Fix #639 fix namespace desc problem

This commit is contained in:
water.lyl 2019-01-22 12:38:06 +08:00
parent d37228caef
commit fc5db210bb
6 changed files with 11 additions and 7 deletions

View File

@ -194,7 +194,7 @@ class EditorNameSpace extends React.Component {
<Input <Input
{...this.field.init('namespaceDesc', { {...this.field.init('namespaceDesc', {
rules: [ rules: [
{ required: true, message: locale.namespace }, { required: true, message: locale.namespaceDesc },
{ validator: this.validateChart.bind(this) }, { validator: this.validateChart.bind(this) },
], ],
})} })}

View File

@ -213,7 +213,7 @@ class NewNameSpace extends React.Component {
rules: [ rules: [
{ {
required: true, required: true,
message: locale.namespacenotnull, message: locale.namespacedescnotnull,
}, },
{ validator: this.validateChart.bind(this) }, { validator: this.validateChart.bind(this) },
], ],

View File

@ -315,6 +315,7 @@ const I18N_CONF = {
editNamespace: 'Loading...', editNamespace: 'Loading...',
load: 'Namespace:', load: 'Namespace:',
namespace: 'Namespace cannot be empty', namespace: 'Namespace cannot be empty',
namespaceDesc: 'Namespace description cannot be empty',
description: 'Description:', description: 'Description:',
}, },
ExportDialog: { ExportDialog: {
@ -369,6 +370,7 @@ const I18N_CONF = {
loading: 'Loading...', loading: 'Loading...',
name: 'Namespace:', name: 'Namespace:',
namespacenotnull: 'Namespace cannot be empty', namespacenotnull: 'Namespace cannot be empty',
namespacedescnotnull: 'Namespace description cannot be empty',
description: 'Description:', description: 'Description:',
}, },
NameSpaceList: { NameSpaceList: {

View File

@ -314,6 +314,7 @@ const I18N_CONF = {
editNamespace: '加载中...', editNamespace: '加载中...',
load: '命名空间名', load: '命名空间名',
namespace: '命名空间不能为空', namespace: '命名空间不能为空',
namespaceDesc: '命名空间描述不能为空',
description: '描述', description: '描述',
}, },
ExportDialog: { ExportDialog: {
@ -368,6 +369,7 @@ const I18N_CONF = {
loading: '加载中...', loading: '加载中...',
name: '命名空间名', name: '命名空间名',
namespacenotnull: '命名空间不能为空', namespacenotnull: '命名空间不能为空',
namespacedescnotnull: '命名空间描述不能为空',
description: '描述', description: '描述',
}, },
NameSpaceList: { NameSpaceList: {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long