From a442962f7c23f3ae8790a0ddeca1e9b569902b8a Mon Sep 17 00:00:00 2001 From: fengyang_sy Date: Thu, 12 Oct 2023 14:15:40 +0800 Subject: [PATCH] [#issue-561]Missing individual description information definitions in agent, user, and channel pages Missing individual description information definitions in agent, user, and channel pages Signed-off-by: fengyang_sy --- src/dashboard/src/locales/en-US/Agent.js | 2 +- src/dashboard/src/locales/en-US/operatorUser.js | 2 +- src/dashboard/src/locales/zh-CN/Channel.js | 2 +- src/dashboard/src/locales/zh-CN/operatorUser.js | 2 +- src/dashboard/src/pages/Agent/Agent.js | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dashboard/src/locales/en-US/Agent.js b/src/dashboard/src/locales/en-US/Agent.js index 2d803b81a..c38609545 100755 --- a/src/dashboard/src/locales/en-US/Agent.js +++ b/src/dashboard/src/locales/en-US/Agent.js @@ -6,7 +6,7 @@ export default { 'app.agent.form.new.title': 'New Agent', 'app.agent.form.update.title': 'Update Agent', 'app.agent.form.name.label': 'Agent Name', - 'app.agent.form.name.required': 'Please input organization name', + 'app.agent.form.name.required': 'Please input agent name', 'app.agent.create.success': 'Create agent {name} success.', 'app.agent.create.fail': 'Create agent {name} failed', 'app.agent.update.success': 'Update agent {name} success.', diff --git a/src/dashboard/src/locales/en-US/operatorUser.js b/src/dashboard/src/locales/en-US/operatorUser.js index 4542ad963..951e9e3da 100644 --- a/src/dashboard/src/locales/en-US/operatorUser.js +++ b/src/dashboard/src/locales/en-US/operatorUser.js @@ -8,7 +8,7 @@ export default { 'app.user.table.header.organization': 'Organization', 'app.user.role.user': 'User', 'app.user.role.operator': 'Operator', - 'app.user.role.administrator': 'Administrator', + 'app.user.role.admin': 'Administrator', 'app.user.form.new.title': 'New User', 'app.user.form.update.title': 'Update User', 'app.user.form.name.label': 'User Name', diff --git a/src/dashboard/src/locales/zh-CN/Channel.js b/src/dashboard/src/locales/zh-CN/Channel.js index 56d97ee45..e82361f1a 100755 --- a/src/dashboard/src/locales/zh-CN/Channel.js +++ b/src/dashboard/src/locales/zh-CN/Channel.js @@ -16,7 +16,7 @@ export default { 'app.channel.form.update.fail': '更新通道配置失败', 'app.channel.form.update.header.title': '更新通道', 'app.channel.form.update.orgType': 'Org类型', - 'app.channel.update.required.orgType': '请选择Org类型', + 'app.channel.form.update.required.orgType': '请选择Org类型', 'app.channel.form.update.mspId': 'MSP ID', 'app.channel.form.update.checkMSPId': '请输入MSP ID', 'app.channel.form.update.file': '通道配置文件', diff --git a/src/dashboard/src/locales/zh-CN/operatorUser.js b/src/dashboard/src/locales/zh-CN/operatorUser.js index 7caa5dd88..03b1cf5c7 100644 --- a/src/dashboard/src/locales/zh-CN/operatorUser.js +++ b/src/dashboard/src/locales/zh-CN/operatorUser.js @@ -8,7 +8,7 @@ export default { 'app.user.table.header.organization': '组织', 'app.user.role.user': '普通用户', 'app.user.role.operator': '系统管理员', - 'app.user.role.administrator': '管理员', + 'app.user.role.admin': '管理员', 'app.user.form.new.title': '新建用户', 'app.user.form.update.title': '更新用户', 'app.user.form.name.label': '用户名', diff --git a/src/dashboard/src/pages/Agent/Agent.js b/src/dashboard/src/pages/Agent/Agent.js index 7837c596e..6a36c0da8 100755 --- a/src/dashboard/src/pages/Agent/Agent.js +++ b/src/dashboard/src/pages/Agent/Agent.js @@ -68,8 +68,8 @@ const ApplyAgentForm = props => { { required: true, message: intl.formatMessage({ - id: 'app.newAgent.required.Name', - defaultMessage: 'Please input name.', + id: 'app.agent.form.name.required', + defaultMessage: 'Please input agent name', }), }, ]}