Skip to content

Commit

Permalink
add numbers of items
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-GeGe committed Sep 17, 2024
1 parent 5bd4f75 commit d51188d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions estela-web/src/pages/ProjectJobListPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ export class ProjectJobListPage extends Component<RouteComponentProps<RouteParam
</Content>
),
},
{
title: "ITEMS",
dataIndex: "itemCount",
key: "itemCount",
render: (item_count: number): ReactElement => (
<Content>
<Text>{item_count}</Text>
</Content>
),
},
];

async componentDidMount(): Promise<void> {
Expand Down Expand Up @@ -202,6 +212,7 @@ export class ProjectJobListPage extends Component<RouteComponentProps<RouteParam
date: convertDateToString(job.created),
status: job.jobStatus,
tags: job.tags,
itemCount: job.itemCount,
}));

const waitingJobs = data.filter((job: SpiderJobData) => job.status === "WAITING");
Expand Down

0 comments on commit d51188d

Please sign in to comment.