Skip to content

Commit 790d25a

Browse files
authored
make myServices table can be selectable. (#1570)
1 parent 92607ed commit 790d25a

17 files changed

+463
-85
lines changed

src/components/content/credentials/Credentials.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ function Credentials(): React.JSX.Element {
266266
refresh();
267267
}}
268268
>
269-
refresh
269+
Refresh
270270
</Button>
271271
<Button
272272
type='primary'

src/components/content/deployedServices/myServices/MyServiceHistory.tsx

+3-14
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
import { CheckCircleOutlined, ClockCircleOutlined, CloseCircleOutlined, SyncOutlined } from '@ant-design/icons';
7-
import { Button, Popover, Table, Tag, Typography } from 'antd';
7+
import { Button, Popover, Table, Tag } from 'antd';
88
import { ColumnsType } from 'antd/es/table';
99
import { ColumnFilterItem } from 'antd/es/table/interface';
1010
import React from 'react';
@@ -17,11 +17,10 @@ import {
1717
taskType,
1818
VendorHostedDeployedServiceDetails,
1919
} from '../../../../xpanse-api/generated';
20+
import { ShowId } from '../../order/common/ShowId.tsx';
2021
import { MyServiceHistoryDetails } from './MyServiceHistoryDetails.tsx';
2122
import useListServiceOrdersHistoryQuery from './query/useListServiceModifyHistoryQuery.ts';
2223

23-
const { Paragraph } = Typography;
24-
2524
export const MyServiceHistory = ({
2625
deployedService,
2726
}: {
@@ -87,17 +86,7 @@ export const MyServiceHistory = ({
8786
filterSearch: true,
8887
onFilter: (value: React.Key | boolean, record) => record.orderId.startsWith(value.toString()),
8988
render: (value: string) => {
90-
return (
91-
<div className={serviceOperationStyles.serviceHistoryValue}>
92-
<Paragraph
93-
className={serviceOperationStyles.serviceHistoryOrderIdClass}
94-
ellipsis={true}
95-
copyable={{ tooltips: value }}
96-
>
97-
{value}
98-
</Paragraph>
99-
</div>
100-
);
89+
return <ShowId id={value} />;
10190
},
10291
},
10392
{

0 commit comments

Comments
 (0)