Skip to content

Commit

Permalink
fix: add missing label in nodes component (#1823)
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Shen <[email protected]>
  • Loading branch information
ericsyh authored Apr 25, 2021
1 parent 73b3dd9 commit 2f3717f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions web/src/components/Upstream/components/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const Component: React.FC<Props> = ({ readonly }) => {
<Row style={{ marginBottom: 10 }} gutter={16} key={index}>
<Col span={5}>
<Form.Item
label={formatMessage({id: 'page.upstream.step.host'})}
style={{ marginBottom: 0 }}
name={[field.name, 'host']}
rules={[
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Upstream/locales/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
'page.upstream.step.input.domain.name.or.ip': 'Please enter domain or IP',
'page.upstream.step.valid.domain.name.or.ip': 'Please enter valid a domain or IP',
'page.upstream.step.domain.name.or.ip': 'Hostname or IP',
'page.upstream.step.host': 'Host',
'page.upstream.step.input.port': 'Please enter port number',
'page.upstream.step.port': 'Port',
'page.upstream.step.input.weight': 'Please enter weight',
Expand Down
1 change: 1 addition & 0 deletions web/src/pages/Upstream/locales/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default {
'page.upstream.form.item-label.node.domain.or.ip': '目标节点',
'page.upstream.step.input.domain.name.or.ip': '请输入域名或 IP',
'page.upstream.step.domain.name.or.ip': '主机名或 IP',
'page.upstream.step.host': '主机名',
'page.upstream.step.valid.domain.name.or.ip': '请输入合法的域名或 IP',
'page.upstream.step.input.port': '请输入',
'page.upstream.step.port': '端口',
Expand Down

0 comments on commit 2f3717f

Please sign in to comment.