Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
piccaSun committed Nov 3, 2023
1 parent 50d34d6 commit b005fa0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-garlics-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/portal-web": patch
---

修改交互式应用列表作业在 PENDING 状态时不显示剩余时间
3 changes: 2 additions & 1 deletion apps/portal-web/src/pageComponents/app/AppSessionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export const AppSessionsTable: React.FC<Props> = ({ cluster }) => {

return sessions.map((x) => ({
...x,
remainingTime: x.state === "RUNNING" ? calculateAppRemainingTime(x.runningTime, x.timeLimit) : x.timeLimit,
remainingTime: x.state === "RUNNING" ? calculateAppRemainingTime(x.runningTime, x.timeLimit) :
x.state === "PENDING" ? "" : x.timeLimit,
}));

}, [cluster]),
Expand Down

0 comments on commit b005fa0

Please sign in to comment.