Skip to content

Commit bbecd55

Browse files
authored
feat: add upstream id in form (#2321)
1 parent fd44364 commit bbecd55

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

web/cypress/integration/upstream/create_and_edit_upstream_with_custom_chash_key.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ context('Create and Delete Upstream With Custom CHash Key', () => {
8383
cy.contains('Next').click();
8484
cy.contains('Submit').click();
8585
cy.get(selector.notification).should('contain', data.createUpstreamSuccess);
86+
cy.contains('.ant-table-cell', 'ID').should('be.visible');
8687
cy.url().should('contains', 'upstream/list');
8788
});
8889

web/src/pages/Upstream/List.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ const Page: React.FC = () => {
5151
}, [window.location.search]);
5252

5353
const columns: ProColumns<UpstreamModule.ResponseBody>[] = [
54+
{
55+
title: formatMessage({ id: 'page.upstream.list.id' }),
56+
dataIndex: 'id',
57+
hideInSearch: true,
58+
},
5459
{
5560
title: formatMessage({ id: 'page.upstream.list.name' }),
5661
dataIndex: 'name',

web/src/pages/Upstream/locales/en-US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export default {
7676
'page.upstream.create.basic.info': 'Basic Information',
7777
'page.upstream.create.preview': 'Preview',
7878

79+
'page.upstream.list.id': 'ID',
7980
'page.upstream.list.name': 'Name',
8081
'page.upstream.list.type': 'Type',
8182
'page.upstream.list.description': 'Description',

web/src/pages/Upstream/locales/zh-CN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default {
7575
'page.upstream.create.basic.info': '基础信息',
7676
'page.upstream.create.preview': '预览',
7777

78+
'page.upstream.list.id': 'ID',
7879
'page.upstream.list.name': '名称',
7980
'page.upstream.list.type': '类型',
8081
'page.upstream.list.description': '描述',

0 commit comments

Comments
 (0)