Skip to content

Commit

Permalink
Changed the message ids.
Browse files Browse the repository at this point in the history
Signed-off-by: Xiao Ran <shawnran182@gmail.com>
  • Loading branch information
xiaor2 committed Nov 17, 2023
1 parent 748df93 commit 07f30bb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/dashboard/src/pages/ChainCode/forms/ApproveForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ const ApproveForm = props => {
if (response.status !== 'successful') {
message.error(
intl.formatMessage({
id: 'app.operator.chainCode.form.approve.fail',
id: 'app.chainCode.form.approve.fail',
defaultMessage: 'Approve chaincode failed',
})
);
} else {
message.success(
intl.formatMessage({
id: 'app.operator.chainCode.form.approve.success',
id: 'app.chainCode.form.approve.success',
defaultMessage: 'Approve chaincode succeed',
})
);
Expand Down Expand Up @@ -92,7 +92,7 @@ const ApproveForm = props => {
<Modal
destroyOnClose
title={intl.formatMessage({
id: 'app.operator.chainCode.form.approve.header.title',
id: 'app.chainCode.form.approve.header.title',
defaultMessage: 'Approve Chaincode',
})}
confirmLoading={approving}
Expand All @@ -104,15 +104,15 @@ const ApproveForm = props => {
<FormItem
{...formItemLayout}
label={intl.formatMessage({
id: 'app.operator.chainCode.form.approve.channel',
id: 'app.chainCode.form.approve.channel',
defaultMessage: 'Please select channel',
})}
name="channel"
rules={[
{
required: true,
message: intl.formatMessage({
id: 'app.operator.chainCode.form.approve.channel',
id: 'app.chainCode.form.approve.channel',
defaultMessage: 'Please select channel',
}),
},
Expand All @@ -129,31 +129,31 @@ const ApproveForm = props => {
<FormItem
{...formItemLayout}
label={intl.formatMessage({
id: 'app.operator.chainCode.form.approve.specifyName',
id: 'app.chainCode.form.approve.specifyName',
defaultMessage: 'Name for chaincode',
})}
name="name"
rules={[
{
required: true,
message: intl.formatMessage({
id: 'app.operator.chainCode.form.approve.specifyName',
id: 'app.chainCode.form.approve.specifyName',
defaultMessage: 'Name for chaincode',
}),
},
]}
>
<Input
placeholder={intl.formatMessage({
id: 'app.operator.chainCode.form.approve.name',
id: 'app.chainCode.form.approve.name',
defaultMessage: 'Name',
})}
/>
</FormItem>
<FormItem
{...formItemLayout}
label={intl.formatMessage({
id: 'app.operator.chainCode.form.initFlag',
id: 'app.chainCode.form.initFlag',
defaultMessage: '--init-required flag',
})}
name="initFlag"
Expand Down

0 comments on commit 07f30bb

Please sign in to comment.