fix: Fix for network download & vpn tunnel create css

1. fix network download subnets column
2. fix create vpn tunnel css

Change-Id: I819d32108a66cc07b1f80ec7f0b5843bfc45b3f0
This commit is contained in:
zhuyue 2021-08-27 18:24:12 +08:00
parent e72e9beb5d
commit 2d6971dc95
2 changed files with 3 additions and 2 deletions

View File

@ -214,13 +214,13 @@ export default class Create extends ModalAction {
component: (
<Row>
{!peer_ep_group_id ? (
<Col>
<Col span={24}>
<Empty />
</Col>
) : (
this.endpointGroupStore.list.data
.find((i) => i.id === peer_ep_group_id)
.endpoints.map((item) => <Col>{item}</Col>)
.endpoints.map((item) => <Col span={24}>{item}</Col>)
)}
</Row>
),

View File

@ -75,6 +75,7 @@ export const networkColumns = (self) => [
</>
);
},
stringify: (subnets) => `${subnets.length}(${subnets.join(',')})`,
sorter: false,
},
{